diff --git a/.github/workflows/notify-portmap.yml b/.github/workflows/notify-portmap.yml index 1b13380..9d7252b 100644 --- a/.github/workflows/notify-portmap.yml +++ b/.github/workflows/notify-portmap.yml @@ -33,9 +33,15 @@ jobs: runs-on: ubuntu-latest needs: validate-articles # This ensures the notify-portmap job only runs if validate-articles passes steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.ORG_APP_ID }} + private-key: ${{ secrets.ORG_APP_PRIVATE_KEY }} + - name: Send repository_dispatch uses: peter-evans/repository-dispatch@v3 with: - token: ${{ secrets.PORTMAP_REPOSITORY_DISPATCH_PAT }} + token: ${{ steps.app-token.outputs.token }} repository: dtinit/portmap - event-type: content_update \ No newline at end of file + event-type: content_update