Cancel previous CI runs when newer changes are pushed in a PR (#1898)
This commit is contained in:
Родитель
354f8773e4
Коммит
466ed74b2c
|
@ -4,6 +4,11 @@ on:
|
|||
# Allows running workflow manually from the GitHub Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
name: Build and Test
|
||||
|
|
|
@ -9,6 +9,11 @@ on:
|
|||
# Allows you to run this workflow manually from the Actions tab.
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# get matrix for ci-jobs
|
||||
get_matrix:
|
||||
|
|
|
@ -20,6 +20,11 @@ on:
|
|||
schedule:
|
||||
- cron: '24 7 * * 0'
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
|
|
|
@ -10,6 +10,11 @@ on:
|
|||
required: true
|
||||
default: 'main'
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
create_beta_release:
|
||||
name: Bump versions and create changelog PR
|
||||
|
|
|
@ -17,6 +17,11 @@ on:
|
|||
- stable-patch
|
||||
- beta
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# create pre-release branch for beta releases
|
||||
create_pre-release:
|
||||
|
|
|
@ -9,6 +9,11 @@ on:
|
|||
type: string
|
||||
required: true
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
create_release:
|
||||
if: ${{ startsWith(github.event.inputs.branch, 'prerelease') }}
|
||||
|
|
|
@ -17,6 +17,11 @@ on:
|
|||
- minor
|
||||
- patch
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
create_stable_release:
|
||||
name: Bump versions and create changelog PR
|
||||
|
|
|
@ -10,6 +10,11 @@ on:
|
|||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-and-deploy-samples:
|
||||
name: Build and Deploy samples
|
||||
|
|
|
@ -8,6 +8,11 @@ on:
|
|||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-and-deploy-samples:
|
||||
name: Build and Deploy samples
|
||||
|
|
|
@ -4,6 +4,11 @@ on:
|
|||
# Trigger via 'Actions' on GitHub
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build-and-deploy-storybook:
|
||||
name: Build and Deploy Storybook
|
||||
|
|
|
@ -10,6 +10,11 @@ on:
|
|||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
checkForChanges:
|
||||
name: Check for new changes
|
||||
|
|
|
@ -19,6 +19,11 @@ on:
|
|||
- stable
|
||||
- beta
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
environment:
|
||||
|
|
|
@ -11,6 +11,11 @@ on:
|
|||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
chromatic_deployment:
|
||||
name: Publish Chromatic
|
||||
|
|
|
@ -17,6 +17,11 @@ on:
|
|||
type: boolean
|
||||
default: false
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
runTDBuild:
|
||||
name: Run Touchdown build
|
||||
|
|
|
@ -3,6 +3,11 @@ name: Stress test UI tests
|
|||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
stress_test_ui_tests:
|
||||
name: Run UI tests 7 times
|
||||
|
|
|
@ -3,6 +3,11 @@ name: Update API files
|
|||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
update_composite_snapshot:
|
||||
name: Update all API files
|
||||
|
|
|
@ -6,6 +6,11 @@ on:
|
|||
types: [opened, synchronize, reopened, labeled]
|
||||
workflow_dispatch:
|
||||
|
||||
# cancel workflow when a newer version of the workflow is triggered on the same github ref
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# get matrix for ci-jobs
|
||||
get_matrix:
|
||||
|
|
Загрузка…
Ссылка в новой задаче