Skip to content

Commit 9f6a2d2

Browse files
authored
Merge pull request #691 from square/RBusarow-patch-1
Automatically cancel stale jobs in CI
2 parents 4039955 + a7d91a9 commit 9f6a2d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/kotlin.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ on:
1010
- 'samples/tutorial/**'
1111

1212
jobs:
13+
14+
cancel-stale-jobs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# If CI is already running for a branch when that branch is updated, cancel the older jobs.
18+
- name: Cancel Stale Jobs
19+
uses: styfle/[email protected]
20+
env:
21+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
22+
1323
dokka:
1424
name: Assemble & Dokka
1525
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)