diff --git a/.github/workflows/notify-portmap.yml b/.github/workflows/notify-portmap.yml index 1b13380..48e7587 100644 --- a/.github/workflows/notify-portmap.yml +++ b/.github/workflows/notify-portmap.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -33,9 +33,16 @@ 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 }} + owner: ${{ github.repository_owner }} + - 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