Skip to content

Commit

Permalink
Merge pull request #126 from actions/dep-rebuild-wf
Browse files Browse the repository at this point in the history
Revise Dependabot rebuild workflow
  • Loading branch information
JamesMGreene committed Mar 3, 2023
2 parents 90e90be + 70116d1 commit 5f0a0ff
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/rebuild-dependabot-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ on:
branches:
- 'dependabot/npm**'

permissions:
contents: write

# 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
# No permissions needed for `GITHUB_TOKEN` since we're using a PAT instead
permissions: {}

jobs:
rebuild-dist:
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
steps:
- name: Checkout
Expand Down

0 comments on commit 5f0a0ff

Please sign in to comment.