Pushing a tag within an action doesn't trigger another workflow #25617
-
I have a node script that handles auto tagging for me:
My action runs this script:
This completes without errors and I can see the new tags locally so I know they’ve been pushed. However another action I have that listens for changes in those tags, doesn’t run:
I know this action should run because when I pushed tags previously in an external CI/CD tool it triggered it correctly. So my guess is my commit/push command from the development branch is missing something |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
I can’t see it in your workflow excerpt, but it looks like you’re using the
If you want to trigger a workflow, you need to create a PAT and use that to authorize the push. |
Beta Was this translation helpful? Give feedback.
-
Thanks for additional info, I’m not using GITHUB_TOKEN no;
I assumed github actions had access to push to the same repo as I’m not authing it at all as far as I can tell (no secrets called GITHUB_TOKEN or PAT either) |
Beta Was this translation helpful? Give feedback.
-
Looks like you are in fact using the That token is automatically created for each workflow run, and |
Beta Was this translation helpful? Give feedback.
-
Just read some more, I have this set so that’s probably why: What’s the best way of making sure my node script doesn’t use it, and instead uses a personal access token? |
Beta Was this translation helpful? Give feedback.
-
I think the easiest way is to use the
|
Beta Was this translation helpful? Give feedback.
-
This is now working, thank you so much!!! |
Beta Was this translation helpful? Give feedback.
I think the easiest way is to use the
token
parameter foractions/checkout
I mentioned above. Put the PAT in a secret, and do the checkout similar to this: