Skip to content

How to trigger action for tag on old commit #25963

Discussion options

You must be logged in to vote

Hi @dmfrodrigues,

Glad to see you in Github Community Forum!

This is by designed. When you tag old commit and push to repository, github will check if event trigger exists on the workflow yaml “AT THE COMMIT”, while not the latest workflow yaml file.

You can checkout the files based on the old commit, if there’s already tag trigger(on: push: tags) on the workflow yaml, tag on this commit, the workflow will be triggered. If no tag trigger, workflow will not be triggered.

My workflow for your reference.

It’s not supported to always trigger actions no matter old/recent commit is tagged.

Hope it’s clear and helpful!

Replies: 3 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
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