Unverified Commit d155407b authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

workflows/labels: prevent error on token creation for Test workflow (#437094)

parents 6ca23dff 97968795
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 }}
+3 −3
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ program
  .option('--no-dry', 'Make actual modifications')
  .action(async (owner, repo, pr, options) => {
    const prepare = (await import('./prepare.js')).default
    run(prepare, owner, repo, pr, options)
    await run(prepare, owner, repo, pr, options)
  })

program
@@ -61,7 +61,7 @@ program
  .option('--no-cherry-picks', 'Do not expect cherry-picks.')
  .action(async (owner, repo, pr, options) => {
    const commits = (await import('./commits.js')).default
    run(commits, owner, repo, pr, options)
    await run(commits, owner, repo, pr, options)
  })

program
@@ -77,7 +77,7 @@ program
    try {
      process.env.GITHUB_WORKSPACE = tmp
      process.chdir(tmp)
      run(labels, owner, repo, pr, options)
      await run(labels, owner, repo, pr, options)
    } finally {
      rmSync(tmp, { recursive: true })
    }