mirror of
https://github.com/cft0808/edict.git
synced 2026-09-03 07:17:16 +08:00
fix(ci): skip labeler for fork pull requests (#281)
Fork PRs 缺少写权限导致 actions/labeler 失败,跳过 label job 解决误红
This commit is contained in:
3
.github/workflows/auto-label.yml
vendored
3
.github/workflows/auto-label.yml
vendored
@@ -10,6 +10,9 @@ permissions:
|
||||
|
||||
jobs:
|
||||
label:
|
||||
# Fork PRs do not get a write-capable GITHUB_TOKEN under pull_request,
|
||||
# so actions/labeler would fail with "Resource not accessible by integration".
|
||||
if: ${{ !github.event.pull_request.head.repo.fork }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/labeler@v6
|
||||
|
||||
Reference in New Issue
Block a user