Skip to content

Commit 36cca5b

Browse files
ArmavicaricardoV94
authored andcommitted
Cancel running workflows for updated PRs
1 parent 30ee47d commit 36cca5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/tests.yml

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
- main
88

99

10+
11+
# Cancel running workflows for updated PRs
12+
# https://turso.tech/blog/simple-trick-to-save-environment-and-money-when-using-github-actions
13+
concurrency:
14+
group: ${{ github.workflow}}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
1017
# Tests are split into multiple jobs to accelerate the CI.
1118
# Different jobs should be organized to take approximately the same
1219
# time to complete (and not be prohibitely slow).

0 commit comments

Comments
 (0)