Skip to content

Commit dc97b3b

Browse files
warning of ref is a tag
1 parent 0e95268 commit dc97b3b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ runs:
3434
${{ github.action_path }}\md5-CI-builder.exe ${{ inputs.build-mode }} ${{ inputs.dir-path }}
3535
git add -A
3636
shell: cmd
37+
- if: ${{ inputs.no-push == 'false' && startsWith(github.ref, 'refs/tags/') }}
38+
run: echo "::warning title=ref is a tag::The ref should not be a tag, consider using tags-ignore to avoid the tag being used as a ref to trigger this workflow"
39+
shell: cmd
3740
- id: commit
38-
if: ${{ inputs.no-push == 'false' }}
41+
if: ${{ inputs.no-push == 'false' && !startsWith(inputs.ref, 'refs/tags/') }}
3942
uses: actions-go/push@master
4043
with:
4144
author-email: ${{ inputs.committer-email }}

0 commit comments

Comments
 (0)