Skip to content

Commit cf725c5

Browse files
committed
[workflow] auto cancel
1 parent 7bd0dc5 commit cf725c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/create-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
- name: Check if tag is valid
3636
run: |
3737
if [[ ! "${{ github.ref_name }}" =~ ^refs/tags/v.* ]]; then
38-
echo "This workflow must only run for a tag and not a branch."
39-
exit 1
38+
echo "Auto Cancel: The event was triggered by a branch push or an invalid tag."
39+
exit 78
4040
fi
4141
4242
- name: Checkout code

0 commit comments

Comments
 (0)