Skip to content

Commit 6aad70b

Browse files
committed
Switch to the new release event type filter
Fixes #2201
1 parent 5971794 commit 6aad70b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Build CI
22

3-
on: [push, pull_request, release]
3+
on:
4+
push:
5+
pull_request:
6+
release:
7+
types: [published]
8+
check_suite:
9+
types: [rerequested]
410

511
jobs:
612
test:
@@ -10,9 +16,6 @@ jobs:
1016
env:
1117
GITHUB_CONTEXT: ${{ toJson(github) }}
1218
run: echo "$GITHUB_CONTEXT"
13-
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
14-
run: exit 1
15-
if: github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested')
1619
- name: Set up Python 3.5
1720
uses: actions/setup-python@v1
1821
with:

.github/workflows/create_website_pr.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Update CircuitPython.org
22

3-
on: release
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
website:
@@ -10,9 +12,6 @@ jobs:
1012
env:
1113
GITHUB_CONTEXT: ${{ toJson(github) }}
1214
run: echo "$GITHUB_CONTEXT"
13-
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
14-
run: exit 1
15-
if: github.event.action != 'published'
1615
- name: Set up Python 3.5
1716
uses: actions/setup-python@v1
1817
with:

0 commit comments

Comments
 (0)