Github action 'registry_package'-event triggered multiple times

I push a single package to the GithubPackageRepository and the workflow (with following action.yml) is triggered six times. Any ideas what’s the problem with this workflow or how can i decrease the trigger count to one.

name: Trigger - new package uploaded

on: [registry_package]

jobs:
createRepositoryDispatch:
runs-on: ubuntu-latest
steps:  
-uses: actions/checkout@v2
-run: echo ${{ github.event.action }}

The echo-output is ‘published’ on every triggered workflow? Furthermore there is no documentation about this trigger-event?

Thank you in advance for any help!

I cannot repo with your code on my side. Only one workflow is triggered not six. The echo-output is ‘published’. please check my link here for more details: https://github.com/weide-zhou/Toolkit/runs/416596726?check_suite_focus=true How did you push the package? Did you update the package for 6 times? It’s recommended to check the package version and package numbers for confirmation. Regarding the event doc, i have raised an internal ticket to ask for update. Thanks!

1 Like

I published the package from a local testproject (in Gradle) with the gradle publish task. Maybe is there a problem with the maven package registry, because the publish task is triggered only once.

I’ll do a check with the npm registry later today.

Thank you so far. :slight_smile:

Okay I’ve tested this behaviour with the npm package upload and here the action is triggered as expected only once. Seems to be a bug with Maven package registry!

1 Like

Hi @saltcreek-tom ,

I created a maven package and checked event ‘registry_package’, now i can repro the same with you, multiple workflows are triggered. Thank you for reaching this out!

Since the event doc is not created, i have raised an internal ticket to confirm, i will update once there’s a response.

1 Like

Same problem here, workflow triggered 6 times:


name: Publish to Maven Central
on:
  registry_package:
    types: [published]
jobs: ...