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

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 3be7b29  Revert "[SPARK-35668][INFRA] Use "concurrency" syntax on 
Github Actions workflow"
3be7b29 is described below

commit 3be7b29cd8beaf6d34640dec12a10bc033deecdc
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Wed Jun 9 16:48:12 2021 +0900

    Revert "[SPARK-35668][INFRA] Use "concurrency" syntax on Github Actions 
workflow"
    
    This reverts commit f3dc549d9c4af90a4e01e9a3b8b6724aa4ceddca.
---
 .github/workflows/benchmark.yml                      |  4 ----
 .github/workflows/cancel_duplicate_workflow_runs.yml | 19 +++++++++++++++++++
 .github/workflows/labeler.yml                        |  4 ----
 .github/workflows/notify_test_workflow.yml           |  4 ----
 .github/workflows/test_report.yml                    |  4 ----
 5 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 9952760..76ae152 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -20,10 +20,6 @@ on:
         required: true
         default: '1'
 
-concurrency:
-  group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
-  cancel-in-progress: true
-
 jobs:
   matrix-gen:
     name: Generate matrix for job splits
diff --git a/.github/workflows/cancel_duplicate_workflow_runs.yml 
b/.github/workflows/cancel_duplicate_workflow_runs.yml
new file mode 100644
index 0000000..b20fc94
--- /dev/null
+++ b/.github/workflows/cancel_duplicate_workflow_runs.yml
@@ -0,0 +1,19 @@
+name: Cancelling Duplicates
+on:
+  workflow_run:
+    workflows: 
+      - 'Build and test'
+    types: ['requested']
+
+jobs:
+  cancel-duplicate-workflow-runs:
+    name: "Cancel duplicate workflow runs"
+    runs-on: ubuntu-latest
+    steps:
+      - uses: 
potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # @master
+        name: "Cancel duplicate workflow runs"
+        with:
+          cancelMode: allDuplicates
+          token: ${{ secrets.GITHUB_TOKEN }}
+          sourceRunId: ${{ github.event.workflow_run.id }}
+          skipEventTypes: '["push", "schedule"]'
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 994831a..98855f4 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -26,10 +26,6 @@
 name: "On pull requests"
 on: pull_request_target
 
-concurrency:
-  group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
-  cancel-in-progress: true
-
 jobs:
   label:
     name: Label pull requests
diff --git a/.github/workflows/notify_test_workflow.yml 
b/.github/workflows/notify_test_workflow.yml
index 40a9ed1..cc2b7a2 100644
--- a/.github/workflows/notify_test_workflow.yml
+++ b/.github/workflows/notify_test_workflow.yml
@@ -27,10 +27,6 @@ on:
   pull_request_target:
     types: [opened, reopened, synchronize]
 
-concurrency:
-  group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
-  cancel-in-progress: true
-
 jobs:
   notify:
     name: Notify test workflow
diff --git a/.github/workflows/test_report.yml 
b/.github/workflows/test_report.yml
index bcb8662..6d70f29 100644
--- a/.github/workflows/test_report.yml
+++ b/.github/workflows/test_report.yml
@@ -5,10 +5,6 @@ on:
     types:
       - completed
 
-concurrency:
-  group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}
-  cancel-in-progress: true
-
 jobs:
   test_report:
     runs-on: ubuntu-latest

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to