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:
|
jobs:
|
||||||
label:
|
label:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository == 'clawdbot/clawdbot'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@v1
|
- name: Generate Token
|
||||||
|
uses: actions/create-github-app-token@v1
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
app-id: "2729701"
|
app-id: "2729701"
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
- uses: actions/labeler@v5
|
- name: Label PR
|
||||||
|
uses: actions/labeler@v5
|
||||||
with:
|
with:
|
||||||
configuration-path: .github/labeler.yml
|
configuration-path: .github/labeler.yml
|
||||||
repo-token: ${{ steps.app-token.outputs.token }}
|
repo-token: ${{ steps.app-token.outputs.token }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user