Unable to get a docker-based GitHub Packages registry_package event from a GitHub Actions workflow #25639
-
I added a workflow that publishes to GitHub Packages (docker) on the creation of a release. Then I added another workflow to activate on I made a forkable project that demonstrates this problem. I am trying to use https://github.com/jeking3/no-github-package-docker-registry-package-event The only action that shows up is the “release” action which indeed publishes a package, however I never get a |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The root cause is that an action in a workflow run which act with GITHUB_TOKEN can’t trigger a new workflow run. In your workflow, you login github docker registry with GITHUB_TOKEN. This make the docker image push operation act with GITHUB_TOKEN. So your workflow on: registry_package will not be triggered. Please create a Personal Access Token with write:packages scope and store its value to secrets. Then use this secret variable in docker login step: |
Beta Was this translation helpful? Give feedback.
-
Thanks, that’s good information. Is that in the documentation? |
Beta Was this translation helpful? Give feedback.
-
There is the document: |
Beta Was this translation helpful? Give feedback.
The root cause is that an action in a workflow run which act with GITHUB_TOKEN can’t trigger a new workflow run. In your workflow, you login github docker registry with GITHUB_TOKEN. This make the docker image push operation act with GITHUB_TOKEN. So your workflow on: registry_package will not be triggered.
Please create a Personal Access Token with write:packages scope and store its value to secrets. Then use this secret variable in docker login step: