mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
workflows/labels: prevent error on token creation for Test workflow
This only happens when the label workflow runs in pull_request context
*and* from within nixpkgs (not a fork). This is the case for dependabot
updates.
(cherry picked from commit 979687958f)
This commit is contained in:
committed by
github-actions[bot]
parent
51dee45438
commit
0ec83b71dd
2
.github/workflows/labels.yml
vendored
2
.github/workflows/labels.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
|
||||
# Use a GitHub App, because it has much higher rate limits: 12,500 instead of 5,000 req / hour.
|
||||
- uses: actions/create-github-app-token@0f859bf9e69e887678d5bbfbee594437cb440ffe # v2.1.0
|
||||
if: vars.NIXPKGS_CI_APP_ID
|
||||
if: github.event_name != 'pull_request' && vars.NIXPKGS_CI_APP_ID
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ vars.NIXPKGS_CI_APP_ID }}
|
||||
|
||||
Reference in New Issue
Block a user