This is an automated email from the ASF dual-hosted git repository.

kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new d3ec856  ci: use concurrency to cancel workflow (#525)
d3ec856 is described below

commit d3ec85657c10a54875cfad05fdebc67b9358cef2
Author: Shuyang Wu <[email protected]>
AuthorDate: Thu Jun 3 06:57:56 2021 -0400

    ci: use concurrency to cancel workflow (#525)
    
    * ci: use concurrency to cancel workflow
    
    Signed-off-by: yiyiyimu <[email protected]>
    
    * test if concurrency works
    
    Signed-off-by: yiyiyimu <[email protected]>
---
 .github/actions/cancel-workflow-runs | 1 -
 .github/workflows/e2e-test-ci.yml    | 5 +++++
 .gitmodules                          | 3 ---
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/actions/cancel-workflow-runs 
b/.github/actions/cancel-workflow-runs
deleted file mode 160000
index 4723494..0000000
--- a/.github/actions/cancel-workflow-runs
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 4723494a065d162f8e9efd071b98e0126e00f866
diff --git a/.github/workflows/e2e-test-ci.yml 
b/.github/workflows/e2e-test-ci.yml
index 8e12323..7d14a61 100644
--- a/.github/workflows/e2e-test-ci.yml
+++ b/.github/workflows/e2e-test-ci.yml
@@ -25,6 +25,11 @@ on:
   pull_request:
     branches:
       - master
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: true
+
 jobs:
   changes:
     runs-on: ubuntu-latest
diff --git a/.gitmodules b/.gitmodules
index a410626..c4f5dbb 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -16,9 +16,6 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-[submodule ".github/actions/cancel-workflow-runs"]
-       path = .github/actions/cancel-workflow-runs
-       url = https://github.com/potiuk/cancel-workflow-runs
 [submodule ".github/actions/paths-filter"]
        path = .github/actions/paths-filter
        url = https://github.com/dorny/paths-filter.git

Reply via email to