diff --git a/.github/workflows/smoke.yaml b/.github/workflows/smoke.yaml index 25322f8ef..3fbf1292e 100644 --- a/.github/workflows/smoke.yaml +++ b/.github/workflows/smoke.yaml @@ -14,6 +14,10 @@ jobs: smoke: runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + if: github.event_name == 'pull_request' + uses: styfle/cancel-workflow-action@0.9.1 + - name: Checkout uses: actions/checkout@v1 @@ -21,7 +25,7 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 - + - name: Cache m2 repo uses: actions/cache@v1 with: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f9fbf51a7..445bdb539 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,6 +8,10 @@ jobs: if: ${{ github.event.label.name == 'run-all-tests' }} runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + if: github.event_name == 'pull_request' + uses: styfle/cancel-workflow-action@0.9.1 + - name: Checkout uses: actions/checkout@v1 @@ -15,7 +19,7 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 - + - name: Cache m2 repo uses: actions/cache@v1 with: