Skip to content

Commit

Permalink
ci: Forward merge commits that skip releases [skip release]
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasBoll authored Oct 12, 2022
1 parent b951205 commit 3c639a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/forward-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
# forward merge would run twice because every commit on master/support causes a new commit
# pushed back to the branch. So we ignore all non-release commits on support/master because
# the release workflow will commit a release commit starting with `chore: Release ...` back to
# the branch and this job will run on that commit instead.
if: "((github.ref_name == 'support' || github.ref_name == 'master') && startsWith(github.event.head_commit.message, 'chore: Release')) || startsWith(github.ref_name, 'prerelease/')"
# the branch and this job will run on that commit instead. Also, forward merges that skipped
# a release
if: "((github.ref_name == 'support' || github.ref_name == 'master') && startsWith(github.event.head_commit.message, 'chore: Release')) || startsWith(github.ref_name, 'prerelease/') || contains(github.event.head_commit.message, '[skip release]')"
runs-on: ubuntu-latest
outputs: # Output branch names for the make-pull-request job
branch: ${{steps.extract-branch.outputs.branch}}
Expand Down

0 comments on commit 3c639a8

Please sign in to comment.