From d25eb8cd7741234cfa3a71a976fe6fbc5be5168c Mon Sep 17 00:00:00 2001 From: Calychas Date: Wed, 22 Nov 2023 19:22:18 +0100 Subject: [PATCH] ci: ghrelease add comment regarding the approach --- .github/workflows/gh-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gh-release.yml b/.github/workflows/gh-release.yml index 8f601a12..2649c850 100644 --- a/.github/workflows/gh-release.yml +++ b/.github/workflows/gh-release.yml @@ -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 }}