diff --git a/.github/actions/kubernetes-project-new-images/README.md b/.github/actions/kubernetes-project-new-images/README.md index 491ffdc..15fbce8 100644 --- a/.github/actions/kubernetes-project-new-images/README.md +++ b/.github/actions/kubernetes-project-new-images/README.md @@ -11,6 +11,7 @@ This action can be used to notify the `cern-sis/kubernetes` repository that your | `event-type` | Yes | String | The type of the event triggering this action. `release` or `update`. | | `images` | Yes | String | The list of new images available. | | `token` | Yes | String | The Personal Access Token used to send the event. | +| `repo` | Yes | String | Repository to fire the dispatch event to | ## Examples @@ -22,6 +23,7 @@ jobs: - name: send event uses: cern-sis/gh-workflows/.github/actions/kubernetes-project-new-images@v6 with: + repo: cern-sis/myrepo event-type: update images: | registry.cern.ch/cern-sis/mycoolproject/mytestimage:v1 @@ -36,6 +38,7 @@ jobs: - name: send event uses: cern-sis/gh-workflows/.github/actions/kubernetes-project-new-images@v6 with: + repo: cern-sis/myrepo event-type: release images: myorg/myotherproject@sha256:xxzxzxzxz token: ${{ secrets.PAT }} diff --git a/.github/actions/kubernetes-project-new-images/action.yml b/.github/actions/kubernetes-project-new-images/action.yml index 182b141..fabf64e 100644 --- a/.github/actions/kubernetes-project-new-images/action.yml +++ b/.github/actions/kubernetes-project-new-images/action.yml @@ -7,6 +7,9 @@ inputs: images: required: true type: string + repo: + required: true + type: string token: required: true type: string @@ -28,7 +31,7 @@ runs: - uses: peter-evans/repository-dispatch@v1 with: - repository: cern-sis/kubernetes-scoap3 + repository: ${{ inputs.repo }} event-type: project-${{ inputs.event-type }} token: ${{ inputs.token }} client-payload: ${{ env.PAYLOAD }}