Skip to content

Commit

Permalink
Cancel a currently running workflow from the same PR when a new workf…
Browse files Browse the repository at this point in the history
…low is triggered (#4200)
  • Loading branch information
pingsutw authored Oct 19, 2023
1 parent e7035a7 commit a8d9efe
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Components Checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
paths:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
name: Codespell

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches: [master]
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/flyteidl-checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Flyteidl Verification Tests

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
paths:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/helm-charts.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Package & Push Flyte Helm Charts

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
push:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sandbox.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build & Push Sandbox Docker Image

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
paths:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/single-binary.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build & Push Flyte Single Binary Images

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
paths:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: tests

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand Down
4 changes: 4 additions & 0 deletions datacatalog/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Datacatalog Checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions flyteadmin/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Flyteadmin Checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions flytecopilot/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Flyte copilot Checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions flyteidl/.github/workflows/verification.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Verification Tests

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
push:
Expand Down
4 changes: 4 additions & 0 deletions flytepropeller/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Flytepropeller Checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
Expand Down
4 changes: 4 additions & 0 deletions flytepropeller/.github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#
name: "CodeQL"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
push:
branches: [ master ]
Expand Down

0 comments on commit a8d9efe

Please sign in to comment.