Chaining Actions #25920
-
I have 2 individual actions, which I’d like to be able chain together. Reading the docs, that doesn’t seem to be possible using GITHUB_TOKEN? https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#using-the-github_token-in-a-workflow
which I’d like to kick off:
Is there a way to do this? Do I just need to use my own token? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I am no expert, but I am pretty sure that you can not have a workflow activate another workflow. |
Beta Was this translation helpful? Give feedback.
-
Yes, you need to use a |
Beta Was this translation helpful? Give feedback.
-
Oh, I didn’t know that. Thanks! |
Beta Was this translation helpful? Give feedback.
-
So, to keep this action as generic as possible, I didn’t like having to create a PAT, so I just grouped it into one Action. Feels appropriate, really, since I don’t want a new image unless I have a new tag.
|
Beta Was this translation helpful? Give feedback.
Yes, you need to use a
repo
scoped PAT to allow the first workflow to trigger the second.See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token