ci: save planet with draft, ci/skip or branch name
* Skips CI for draft PRs, labels ci/skip or branches starting
with datadog-api-spec/pr/.
name: Run Tests
on:
- push:
- branches:
- - master
pull_request:
branches:
- master
@@ -15,6 +12,7 @@ jobs:
go-version: [1.13.x, 1.14.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
+ if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'ci/skip') && !contains(github.event.pull_request.head.ref, 'datadog-api-spec/pr/')
steps:
- name: Install Go
uses: actions/setup-go@v1
