diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index daf7246..dc623bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,10 @@ jobs: build-windows: runs-on: windows-latest steps: + - name: Cancel existing runs on this branch + uses: fauguste/auto-cancellation-running-action@0.1.4 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 - name: Run tests run: cargo test --verbose @@ -31,6 +35,10 @@ jobs: build-macos: runs-on: macos-latest steps: + - name: Cancel existing runs on this branch + uses: fauguste/auto-cancellation-running-action@0.1.4 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 - name: Run tests run: cargo test --verbose diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 510f3df..96f9afb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,6 +13,10 @@ jobs: build-windows: runs-on: windows-latest steps: + - name: Cancel existing runs on this branch + uses: fauguste/auto-cancellation-running-action@0.1.4 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 - name: Run tests run: cargo test --verbose @@ -20,6 +24,10 @@ jobs: build-macos: runs-on: macos-latest steps: + - name: Cancel existing runs on this branch + uses: fauguste/auto-cancellation-running-action@0.1.4 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v3 - name: Run tests run: cargo test --verbose