[Backport release-25.05] workflows/labels: prevent error on token creation for Test workflow (#437095)

This commit is contained in:
Wolfgang Walther
2025-08-26 12:07:56 +00:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

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