-
I have a workflow creating a release for me
Now I have another workflow that should publish that release somewhere else.
But this workflow does not get triggered. What am I missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Creating the release from the UI does trigger the workflow. |
Beta Was this translation helpful? Give feedback.
-
@tcurdt , According to the introduction from the docs about the GITHUB_TOKEN:
Due to you are using the GITHUB_TOKEN to authenticate on the action to create the new release, the workflow can’t be triggered on the release event. If you want the workflow can be triggered when creating a new release via the action, you need to create a personal access token (PAT) and set it as a secret in your repository. Then use this PAT to authenticate on the action. More details, see “Creating a personal access token”.
Generally, if the workflow file does not exist on the default or master branch, this workflow will not be automatically listed under “Actions > All workflows” unless this workflow has been triggered at least once. |
Beta Was this translation helpful? Give feedback.
-
I wish this was linked from the docs about the triggers. I didn’t see it. Thank you so much for the pointer. I will give that a try today.
It is on the master branch. So why doesn’t it show? I have also added another workflow - that uses the same trigger. That one does show up. |
Beta Was this translation helpful? Give feedback.
-
Using the PAT all seems to be working. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
@tcurdt ,
According to the introduction from the docs about the GITHUB_TOKEN:
Due to you are using the GITHUB_TOKEN to authenticate on the action to create the new release, the workflow can’t be triggered on the release event.
If you want the workflow can be triggered when creating a new release via the action, you need to create a personal access token (PAT) and set it as a secret in your repository. Then use this PAT to authenticate on the action. M…