Skip to content

Commit

Permalink
ci: ghrelease add comment regarding the approach
Browse files Browse the repository at this point in the history
  • Loading branch information
Calychas committed Nov 22, 2023
1 parent f206963 commit d25eb8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
run: echo COMMIT_MESSAGE="$(git log -1 --pretty=%B | cat)" >> "$GITHUB_OUTPUT"
- name: Cancel run if not a release commit
run: |
# done this way instead of "exit 1" to avoid having a failed run in the logs
IS_RELEASE_COMMIT=${{ contains(steps.get-last-commit-message.outputs.COMMIT_MESSAGE, format('chore(CI/CD){0} bump version', ':')) }}
if ! $IS_RELEASE_COMMIT; then
gh run cancel ${{ github.run_id }}
Expand Down

0 comments on commit d25eb8c

Please sign in to comment.