Workflow for tags is not triggered after performing git push --follow-tags with PAT in Actions environment
#76402
Unanswered
frantic1048
asked this question in
Actions
Replies: 3 comments 3 replies
|
Confirmed that the issue is reproduced: Neither GITHUB_TOKEN nor PAT can trigger tags listening for other actions |
0 replies
|
https://github.com/orgs/community/discussions/27194#discussioncomment-7038913 |
0 replies
|
You can modify your workflow to trigger on both commit and tag push events. this will ensure that the workflow runs whenever a new commit or tag is pushed to the repository. the workflow will run whenever a new commit or tag is pushed to the repository. for commits, it will trigger on the main branch, while for tags, it will trigger on any tag that starts with @rightcapital/ |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Bug
Body
Description
We have a repository with a GitHub action that conditionally create a new commit(and annotated git tag(s)) and push it back to the repository with a Personal Access Token, done through beachball's
publishcommand.After pushing the new commit and tags(always start with
@rightcapital/), it successfully triggers workflow for the branch(on.push.branches: ['main']), but never triggers workflow for tags(on.push.tags: ['@rightcapital/**']) (We're using this workflow to create Releases on GitHub). Here's the workflow definition:Example commit(with tags on it) that only triggers workflow for branch, but does not trigger workflow for tag: RightCapitalHQ/frontend-style-guide@8052e3d
I think both workflows(includes the workflow runs on tag push) should run when push new commit with tags.
Other info:
Here's a minimal repo with similar automation process as above repo(https://github.com/RightCapitalHQ/frontend-style-guide). Unfortunately I cannot reproduce the same symptom in this minimal repo.
https://github.com/frantic1048/workflow-for-automated-tags
Reproduction Steps
Each time the commit
chore(release): applying package updateswith tags are pushed to the repo(RightCapitalHQ/frontend-style-guide), for example:All reactions