fix(ci): skip labeler in forks to prevent secret missing error

This commit is contained in:
Mohd Hasan 2026-01-26 17:23:05 +05:30
parent e8adc61112
commit 3c88253401

View File

@ -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 }}