You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2021/08/26 15:51:18 UTC
[iceberg] branch master updated: Build: Add workflow to cancel
duplicate workflow runs (#3004)
This is an automated email from the ASF dual-hosted git repository.
blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new 924cc0a Build: Add workflow to cancel duplicate workflow runs (#3004)
924cc0a is described below
commit 924cc0a28116ef0c7a5c84c8b920a7e27ce76703
Author: Kyle Bendickson <98...@users.noreply.github.com>
AuthorDate: Thu Aug 26 08:51:06 2021 -0700
Build: Add workflow to cancel duplicate workflow runs (#3004)
---
.../workflows/cancel-duplicate-workflow-runs.yml | 41 ++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/.github/workflows/cancel-duplicate-workflow-runs.yml b/.github/workflows/cancel-duplicate-workflow-runs.yml
new file mode 100644
index 0000000..702d175
--- /dev/null
+++ b/.github/workflows/cancel-duplicate-workflow-runs.yml
@@ -0,0 +1,41 @@
+#
+# 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: "Cancel Duplicates"
+on:
+ workflow_run:
+ workflows:
+ - 'Java CI'
+ - 'Python CI'
+ types: ['requested']
+
+jobs:
+ cancel-duplicate-workflow-runs:
+ name: "Cancel duplicate workflow runs"
+ runs-on: ubuntu-latest
+ steps:
+ # Pin to prevent picking up changes to the workflow that haven't been verified.
+ # Eventually we'll want to migrate to the native Github Actions `concurrency` feature once it's out of beta.
+ - uses: potiuk/cancel-workflow-runs@4723494a065d162f8e9efd071b98e0126e00f866 # @master
+ name: "Cancel duplicate workflow runs"
+ with:
+ cancelMode: allDuplicates
+ token: ${{ secrets.GITHUB_TOKEN }}
+ sourceRunId: ${{ github.event.workflow_run.id }}
+ skipEventTypes: '["schedule"]'