Skip to content

Issue with tag-ignore with versioning #25158

Answered by weide-zhou
adadkins asked this question in Actions
Discussion options

You must be logged in to vote

Hi @adadkins ,

Yes, this is by designed, commit the package.json along with tags will trigger the workflow.

Actually you can check the value of github.ref when the workflow triggered, if it shows like ‘refs/heads/Branchname’, it’s triggered by the file commit, if it shows like ‘refs/tags/v1.4.5’, it’s triggered by a tag.

echo ${{ github.ref }}

Thanks.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants