Skip to content

Commit

Permalink
Cancel previous CI run in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Nov 15, 2024
1 parent 4d3a7da commit 7b2e073
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ env:
EMAIL: jack20220723@gmail.com

jobs:
cancel-previous:
name: Cancel Previous Runs In Order to Allocate Action Resources Immediately for Current Run
if: github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Cancel previous
uses: styfle/cancel-workflow-action@0.10.1
with:
access_token: ${{ github.token }}

yml-md-style-and-link-checks:
uses: QubitPi/hashistack/.github/workflows/yml-md-style-and-link-checks.yml@master

Expand Down

0 comments on commit 7b2e073

Please sign in to comment.