diff options
| author | Dan Halbert <halbert@adafruit.com> | 2019-10-15 16:41:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-15 16:41:03 -0400 |
| commit | 64c1484bd76e849c0837e26e5cb581bb5fa927a5 (patch) | |
| tree | 017bfb459e22e4d7eaf50fb4f91d985752f265bd /.github | |
| parent | 63790f01f833ff197d92f80816f21a61e924bd72 (diff) | |
| parent | 6aad70b109f12315143d1a0337895b735bc84516 (diff) | |
Merge pull request #2222 from tannewt/fix_release_checks
Switch to the new release event type filter
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 11 | ||||
| -rw-r--r-- | .github/workflows/create_website_pr.yml | 7 |
2 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e81562861..f3c610b87 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,12 @@ name: Build CI -on: [push, pull_request, release] +on: + push: + pull_request: + release: + types: [published] + check_suite: + types: [rerequested] jobs: test: @@ -10,9 +16,6 @@ jobs: env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - - name: Fail if not a release publish # workaround has `on` doesn't have this filter - run: exit 1 - if: github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested') - name: Set up Python 3.5 uses: actions/setup-python@v1 with: diff --git a/.github/workflows/create_website_pr.yml b/.github/workflows/create_website_pr.yml index ce9323702..69ca8f12b 100644 --- a/.github/workflows/create_website_pr.yml +++ b/.github/workflows/create_website_pr.yml @@ -1,6 +1,8 @@ name: Update CircuitPython.org -on: release +on: + release: + types: [published] jobs: website: @@ -10,9 +12,6 @@ jobs: env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - - name: Fail if not a release publish # workaround has `on` doesn't have this filter - run: exit 1 - if: github.event.action != 'published' - name: Set up Python 3.5 uses: actions/setup-python@v1 with: |
