Skip to content

Commit

Permalink
Eliminated use of n1hility plugin in favor of newer concurrency clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbum committed Mar 12, 2024
1 parent 86499ae commit da5b4c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy_pr_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ on:
- synchronize
- ready_for_review
- reopened

concurrency: # replaces use of n1hility/cancel-previous-runs
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_deploy:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
# - uses: n1hility/cancel-previous-runs@v2
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@master
- name: Use Node.js 18
uses: actions/setup-node@v1
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency: # replaces use of n1hility/cancel-previous-runs
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
# - uses: n1hility/cancel-previous-runs@v3
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@master

- name: Use Node.js
Expand Down

0 comments on commit da5b4c9

Please sign in to comment.