Skip to content

Commit e551abb

Browse files
authored
chore: cancel previous GHA from the same PR (#254)
1 parent 87c40eb commit e551abb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
1313

14+
concurrency:
15+
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
1419
jobs:
1520
test:
1621
# The type of runner that the job will run on
@@ -19,7 +24,7 @@ jobs:
1924
# Steps represent a sequence of tasks that will be executed as part of the job
2025
steps:
2126
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2328
# Cache build and external artifacts so that the next ci build is incremental.
2429
# Because github action caches cannot be updated after a build, we need to
2530
# store the contents of each build in a unique cache key, then fall back to loading

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
- name: Mount bazel caches
1818
uses: actions/cache@v3
1919
with:

0 commit comments

Comments
 (0)