Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel a currently running workflow from the same PR when a new workflow is triggered #4200

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading