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 b7736db ci: cancel duplicate workflow to reduce CI queue time (#505)
b7736db is described below
commit b7736dbb58f3df91197fda4da9519e90a4de2a1f
Author: Shuyang Wu <[email protected]>
AuthorDate: Thu May 27 02:47:55 2021 -0400
ci: cancel duplicate workflow to reduce CI queue time (#505)
---
.github/actions/gitleaks-action | 1 +
.github/workflows/cancel-workflow.yml | 42 +++++++++++++++++++++++++++++++++++
.gitmodules | 21 ++++++++++++++++++
3 files changed, 64 insertions(+)
diff --git a/.github/actions/gitleaks-action b/.github/actions/gitleaks-action
new file mode 160000
index 0000000..518e489
--- /dev/null
+++ b/.github/actions/gitleaks-action
@@ -0,0 +1 @@
+Subproject commit 518e4898c0cd1cc5d9aab6627a2eabd46e81d8da
diff --git a/.github/workflows/cancel-workflow.yml
b/.github/workflows/cancel-workflow.yml
new file mode 100644
index 0000000..c99b441
--- /dev/null
+++ b/.github/workflows/cancel-workflow.yml
@@ -0,0 +1,42 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+name: Cancelling Duplicates
+on:
+ workflow_run:
+ workflows:
+ - 'e2e-test-ci'
+ types: ['requested']
+
+jobs:
+ cancel-duplicate-workflow-runs:
+ name: "Cancel duplicate workflow runs"
+ runs-on: ubuntu-latest
+ steps:
+ - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
+ uses: actions/[email protected]
+ with:
+ submodules: recursive
+
+ - uses: ./.github/actions/cancel-workflow-runs
+ name: "Cancel duplicate workflow runs"
+ with:
+ cancelMode: allDuplicates
+ token: ${{ secrets.GITHUB_TOKEN }}
+ sourceRunId: ${{ github.event.workflow_run.id }}
+ skipEventTypes: '["push"]'
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..6459fae
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+[submodule ".github/actions/gitleaks-action"]
+ path = .github/actions/gitleaks-action
+ url = https://github.com/zricethezav/gitleaks-action