Xqt submitted this change.
[CI] cancel old github action if a new commit is made
Change-Id: I1e38e8067dfa0d705e4e41b148c2a57c230da62d
---
M .github/workflows/login_tests-ci.yml
M .github/workflows/pywikibot-ci.yml
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/login_tests-ci.yml b/.github/workflows/login_tests-ci.yml
index 55d5246..1e2605b 100644
--- a/.github/workflows/login_tests-ci.yml
+++ b/.github/workflows/login_tests-ci.yml
@@ -11,6 +11,10 @@
types:
- completed
+concurrency:
+ group: ${{ github.ref }}
+ cancel-in-progress: true
+
env:
PYWIKIBOT_TEST_RUNNING: 1
PYWIKIBOT_LOGIN_LOGOUT: 1
diff --git a/.github/workflows/pywikibot-ci.yml b/.github/workflows/pywikibot-ci.yml
index ae29edc..55969f5 100644
--- a/.github/workflows/pywikibot-ci.yml
+++ b/.github/workflows/pywikibot-ci.yml
@@ -10,6 +10,10 @@
pull_request:
branches: [ master ]
+concurrency:
+ group: ${{ github.ref }}
+ cancel-in-progress: true
+
env:
PYWIKIBOT_TEST_RUNNING: 1
PYWIKIBOT_USERNAME: Pywikibot-test
To view, visit change 834657. To unsubscribe, or for help writing mail filters, visit settings.