fix(ci): skip labeler in forks to prevent secret missing error
This commit is contained in:
parent
e8adc61112
commit
3c88253401
7
.github/workflows/labeler.yml
vendored
7
.github/workflows/labeler.yml
vendored
@ -11,13 +11,16 @@ permissions:
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'clawdbot/clawdbot'
|
||||
steps:
|
||||
- uses: actions/create-github-app-token@v1
|
||||
- name: Generate Token
|
||||
uses: actions/create-github-app-token@v1
|
||||
id: app-token
|
||||
with:
|
||||
app-id: "2729701"
|
||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||
- uses: actions/labeler@v5
|
||||
- name: Label PR
|
||||
uses: actions/labeler@v5
|
||||
with:
|
||||
configuration-path: .github/labeler.yml
|
||||
repo-token: ${{ steps.app-token.outputs.token }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user