Skip to content

Commit 2dd3fed

Browse files
committed
handle rerequested
1 parent c1d8595 commit 2dd3fed

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/build.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
run: echo "$GITHUB_CONTEXT"
1919
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
2020
run: exit 1
21-
if: github.event_name == 'release' && github.event.action != 'published'
21+
if: github.event_name == 'release' && (github.event.action != 'published' ||
22+
github.event.action != 'rerequested')
2223
- name: Set up Python 3.5
2324
uses: actions/setup-python@v1
2425
with:
@@ -184,7 +185,9 @@ jobs:
184185
env:
185186
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
186187
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
187-
if: github.event_name == 'push' || (github.event_name == 'release' && github.event.action == 'published')
188+
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' ||
189+
||
190+
github.event.action == 'rerequested')
188191
- name: Install upload deps
189192
run: |
190193
pip install uritemplate
@@ -194,4 +197,5 @@ jobs:
194197
env:
195198
UPLOAD_URL: ${{ github.event.release.upload_url }}
196199
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
197-
if: github.event_name == 'release' && github.event.action == 'published'
200+
if: github.event_name == 'release' && (github.event.action == 'published' ||
201+
github.event.action == 'rerequested')

.github/workflows/create_website_pr.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ jobs:
3535
env:
3636
RELEASE_TAG: ${{ github.event.release.tag_name }}
3737
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.ADABOT_GITHUB_ACCESS_TOKEN }}
38-
if: github.event_name == 'release' && github.event.action == 'published'
38+
if: github.event_name == 'release' && (github.event.action == 'published' ||
39+
github.event.action == 'rerequested')

0 commit comments

Comments
 (0)