Skip to content

Commit

Permalink
(chore) Tweak pre-release job skip logic (#735)
Browse files Browse the repository at this point in the history
This PR tweaks the custom logic in the `pre-release` job of the CI workflow to accurately represent the signature of a release commit. This is so that GitHub Actions knows not to run the `pre-release` job for commits that cut releases.
  • Loading branch information
denniskigen authored Jul 19, 2023
1 parent b3a3b52 commit 8cebf05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ jobs:
pre_release:
runs-on: ubuntu-latest
needs: build

if: ${{ (github.event.head_commit == null ||
!startsWith(github.event.head_commit.message, '(release)')) &&
!startsWith(github.event.head_commit.message, '(chore) Release v')) &&
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}

steps:
Expand Down

0 comments on commit 8cebf05

Please sign in to comment.