Skip to content

Commit 68ac320

Browse files
cpovirkGoogle Java Core Libraries
authored andcommitted
Use cancel-in-progress instead of styfle/cancel-workflow-action.
Compare cl/943495905 / google/guava#8542. RELNOTES=n/a PiperOrigin-RevId: 947083935
1 parent f0a6b9b commit 68ac320

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
branches:
99
- main
1010

11+
# Cancel in-progress runs for pull requests, but not for master branch pushes
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
1116
jobs:
1217
test:
1318
name: "JDK ${{ matrix.java }}"
@@ -16,11 +21,6 @@ jobs:
1621
java: [ 8, 11, 17 ]
1722
runs-on: ubuntu-latest
1823
steps:
19-
# Cancel any previous runs for the same branch that are still running.
20-
- name: 'Cancel previous runs'
21-
uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66
22-
with:
23-
access_token: ${{ github.token }}
2424
- name: 'Check out repository'
2525
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
2626
- name: 'Cache local Maven repository'

0 commit comments

Comments
 (0)