Skip to content

Commit

Permalink
ci: use actions-github-app-token
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Oct 23, 2022
1 parent 2c04d6b commit 2bef62f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
name: "Pull Request Labeler"
# https://github.com/actions/labeler

on:
- pull_request_target
pull_request_target:

jobs:
triage:
runs-on: ubuntu-22.04
timeout-minutes: 1
permissions: {}
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GH_PAT }}"
# https://github.com/peaceiris/actions-github-app-token
- uses: peaceiris/[email protected]
id: app
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}

# https://github.com/actions/labeler
- uses: actions/labeler@v4
with:
repo-token: "${{ steps.app.outputs.token }}"

0 comments on commit 2bef62f

Please sign in to comment.