From 79672fc5615e2ce869cbadda8a463fc50ece8df5 Mon Sep 17 00:00:00 2001 From: HyukjinKwon Date: Mon, 11 Jan 2021 14:45:13 +0900 Subject: [PATCH 1/4] Cancel jobs only in PRs --- .github/workflows/cancel_duplicate_workflow_runs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cancel_duplicate_workflow_runs.yml b/.github/workflows/cancel_duplicate_workflow_runs.yml index 2bf6cc2304e64..5e8af9de82e54 100644 --- a/.github/workflows/cancel_duplicate_workflow_runs.yml +++ b/.github/workflows/cancel_duplicate_workflow_runs.yml @@ -7,6 +7,7 @@ on: jobs: cancel-duplicate-workflow-runs: + if: github.event.workflow_run.head_repository.full_name != 'apache/spark' # Trigger iif workflows are running in pull requests. name: "Cancel duplicate workflow runs" runs-on: ubuntu-latest steps: From c23e72291ed5da4b7dbc849cb0cf3196baeeb31e Mon Sep 17 00:00:00 2001 From: HyukjinKwon Date: Mon, 11 Jan 2021 14:46:26 +0900 Subject: [PATCH 2/4] Trigger the test From 754911c05230251d632ad91a89ba65668583b924 Mon Sep 17 00:00:00 2001 From: HyukjinKwon Date: Mon, 11 Jan 2021 14:46:40 +0900 Subject: [PATCH 3/4] Trigger the test From 344933179f66965f3bb6d19d352cdca68205ae7e Mon Sep 17 00:00:00 2001 From: HyukjinKwon Date: Mon, 11 Jan 2021 15:55:32 +0900 Subject: [PATCH 4/4] Test PR --- .github/workflows/cancel_duplicate_workflow_runs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cancel_duplicate_workflow_runs.yml b/.github/workflows/cancel_duplicate_workflow_runs.yml index 5e8af9de82e54..9d778881dfa78 100644 --- a/.github/workflows/cancel_duplicate_workflow_runs.yml +++ b/.github/workflows/cancel_duplicate_workflow_runs.yml @@ -7,7 +7,7 @@ on: jobs: cancel-duplicate-workflow-runs: - if: github.event.workflow_run.head_repository.full_name != 'apache/spark' # Trigger iif workflows are running in pull requests. + if: github.event.workflow_run.event == 'pull_request' name: "Cancel duplicate workflow runs" runs-on: ubuntu-latest steps: