`registry_package` event doesn't trigger action

Hi there!

I managed to create two actions on 2 free private repository:

  • the first one triggers an action when registry_package event is fired (when publishing the package on GitHub Package Registry), do a CURL to dispatch an event on the 2nd repo
  • the second one triggers an action when repository_dispatch event is fired which opens a PR

It was working fine / as expected when using it in my repos (it was a test) - and I couldn’t make it work in repos of my company. I was wondering if there was some limitations based on billing plans when you’re part of an organization? Or maybe I’m missing something?

Here is the first action which is neither starting nor listed :slight_smile:

name: Notify
    runs-on: ubuntu-latest
    - uses: actions/checkout@master
    - uses: actions/setup-node@v1
        node-version: '10.x'
    - name:
        GITHUB_TOKEN: ${{ secrets.TOKEN_NAME }}
      run: |
        curl -s -X POST -H "Authorization: token ${GITHUB_TOKEN}" --data "{\"event_type\": \"on-demand-upgrade\", \"client_payload\": {\"key\": \"value\"}}" https://api.github.com/repos/ORG_NAME/REPO_NAME/dispatches

Hi @GabrielCousin,
Could you please confirm that the registry_package event was happened? Was the new package shown in https://github.com/{org}/{repo}/packages page?
How did you publish package to GitHub Package Registry? Did you use your PAT or use workflow scope GITHUB_TOKEN?

Thanks for replying!

The registry_package event was fired in my fired and then triggering the other action as expected in the repos I own. But it’s not working on the repos of my company.

Both packages were being published through GitHub actions and are listed correctly in the https://github.com/ORG_OR_USER/REPO_NAME/packages

My repo is using a PAT whereas the one from my company is using the “default” GITHUB_TOKEN

Event that created by GITHUB_TOKEN could not trigger another workflow.

This screenshot is from document: https://help.github.com/en/actions/reference/events-that-trigger-workflows#about-workflow-events
Please consider to use PAT instead of GITHUB_TOKEN.

:man_facepalming: Thanks a lot for helping us!