Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834657 )

Change subject: [CI] cancel old github action if a new commit is made
......................................................................

[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(-)

Approvals:
  Xqt: Verified; Looks good to me, approved



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/834657
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I1e38e8067dfa0d705e4e41b148c2a57c230da62d
Gerrit-Change-Number: 834657
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to