Skip to content

Release from tagged pushes #25974

Answered by BrightRan
PloxKevin asked this question in Actions
Discussion options

You must be logged in to vote

@PloxKevin,

Since I am not filtering for branches or tags, the workflow should trigger on each commit.

But I see you have set branches filter on push event in your workflow.

on:
  push:
    branches: [ master ]
  . . .

This will trigger the workflow when you push commits to master branch. Pushes to tags will not trigger the workflow. As I mentioned abouve,

if you only define branches filter ( branches or branches-ignore ), the workflow won’t be triggered when you push to tags. similarly, if your only define tags filter ( tags or tags-ignore ), the workflow won’t be triggered when you push to branches.

When you push commits to master branch, the git ref (github.ref) is ‘refs/heads/master

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
Comment options

You must be logged in to vote
0 replies
Comment options

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