Skip to content

How to run job if tag is v* #25911

Discussion options

You must be logged in to vote

Oh, right! In that case you could try to build an if condition for the job that checks github.event.ref, maybe something like this:

if: startsWith(github.event.ref, 'refs/tags/v')

That’s assuming the job will only be called for push events, otherwise you’d have to check the event type first.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
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