Skip to content

Commit

Permalink
Revert "[SPARK-35668][INFRA] Use "concurrency" syntax on Github Actio…
Browse files Browse the repository at this point in the history
…ns workflow"

This reverts commit f3dc549.
  • Loading branch information
HyukjinKwon committed Jun 9, 2021
1 parent 84c5ca3 commit 3be7b29
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/cancel_duplicate_workflow_runs.yml
Original file line number Diff line number Diff line change
@@ -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"]'
4 changes: 0 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/notify_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3be7b29

Please sign in to comment.