Skip to content

Unable to get a docker-based GitHub Packages registry_package event from a GitHub Actions workflow #25639

Answered by Yanjingzhu
jeking3 asked this question in Actions
Discussion options

You must be logged in to vote

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:

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
2 participants