Merge pull request #126 from actions/dep-rebuild-wf

Revise Dependabot rebuild workflow
This commit is contained in:
James M. Greene
2023-03-03 14:14:11 -06:00
committed by GitHub

View File

@@ -5,17 +5,20 @@ on:
branches: branches:
- 'dependabot/npm**' - 'dependabot/npm**'
permissions: # No permissions needed for `GITHUB_TOKEN` since we're using a PAT instead
contents: write permissions: {}
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs: jobs:
rebuild-dist: rebuild-dist:
if: ${{ github.event.sender.login == 'dependabot[bot]' }} if: ${{ github.event.sender.login == 'dependabot[bot]' }}
# This allows a subsequently queued workflow run to interrupt previous runs.
# It is evaluated AFTER the job's `if` condition, so a push triggered by this
# workflow's PAT will NOT interrupt a run triggered by a push from Dependabot.
concurrency:
group: '${{ github.workflow }} / ${{ github.job }} @ ${{ github.ref }}'
cancel-in-progress: true
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout