mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
ci: use actions-github-app-token
This commit is contained in:
parent
2c04d6b595
commit
2bef62f818
19
.github/workflows/labeler.yml
vendored
19
.github/workflows/labeler.yml
vendored
@ -1,13 +1,22 @@
|
|||||||
name: "Pull Request Labeler"
|
name: "Pull Request Labeler"
|
||||||
# https://github.com/actions/labeler
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- pull_request_target
|
pull_request_target:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
triage:
|
triage:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
timeout-minutes: 1
|
||||||
|
permissions: {}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v4
|
# https://github.com/peaceiris/actions-github-app-token
|
||||||
with:
|
- uses: peaceiris/actions-github-app-token@v1.1.4
|
||||||
repo-token: "${{ secrets.GH_PAT }}"
|
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 }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user