This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new abb069c ci: terminate stale GitHub CI jobs early
abb069c is described below
commit abb069cc8e72c8e57eb8835bf3ceb26e4bb91416
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Sat Jan 15 22:18:30 2022 +0300
ci: terminate stale GitHub CI jobs early
For instance, when several commits are pushed to PR in short sequence,
older CI jobs would be terminated immediately so the newer commits are
tested faster.
---
.github/workflows/main.yml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 3c65a54..de80c5e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -10,6 +10,13 @@ on:
#
https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
+concurrency:
+ # On master/release, we don't want any jobs cancelled so the sha is used to
name the group
+ # On PR branches, we cancel the job if new commits are pushed
+ # More info: https://stackoverflow.com/a/68422069/253468
+ group: ${{ (github.ref == 'refs/heads/master' || github.ref ==
'refs/heads/release' ) && format('ci-main-{0}', github.sha) ||
format('ci-main-{0}', github.ref) }}
+ cancel-in-progress: true
+
jobs:
windows:
name: 'Windows (JDK 17)'