Skip to content

Commit

Permalink
Generate an app token for portmap dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbainter committed Nov 6, 2024
1 parent 5820933 commit bde44e7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/notify-portmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
event-type: content_update

0 comments on commit bde44e7

Please sign in to comment.