Skip to content

Commit f7f018f

Browse files
sangbidarustyrussell
authored andcommitted
ci: Retry CI workflow with changelog
Imagine you've burned the midnight oil trying to get your feature into this latest release that was due yesterday. Sweat is dripping off your brow, but you're proud, you're finally ready to push all your changes and merge! . . . Only for Github Gandalf the Grey to go "YOU SHALL NOT PASS". Why? Because you did not add a "Changelog-None" to any of commit messages. So you have to go back and try add a full stop here or a new line there and wait for the CI overlords to bless your PR. :'( Well now, you can just add a Changelog-None to your PR description and github hopefully will take mercy on you and run your CI workflow again :)
1 parent 7666512 commit f7f018f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- "master"
77
pull_request:
8-
8+
types: [opened, synchronize, edited]
99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1111
cancel-in-progress: true
@@ -22,6 +22,9 @@ jobs:
2222
name: Pre-build checks
2323
runs-on: ubuntu-22.04
2424
timeout-minutes: 30
25+
if: |
26+
github.event.action != 'edited' ||
27+
contains(github.event.pull_request.body, 'Changelog')
2528
env:
2629
BOLTDIR: bolts
2730
strategy:

0 commit comments

Comments
 (0)