diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 067c995..bb64526 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -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