зеркало из
1
0
Форкнуть 0

Cancel previous CI runs when newer changes are pushed in a PR (#1898)

This commit is contained in:
James Burnside 2022-05-16 11:47:34 -07:00 коммит произвёл GitHub
Родитель 354f8773e4
Коммит 466ed74b2c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
17 изменённых файлов: 85 добавлений и 0 удалений

5
.github/workflows/alpha-release.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/ci.yml поставляемый
Просмотреть файл

@ -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:

5
.github/workflows/codeql-analysis.yml поставляемый
Просмотреть файл

@ -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:

5
.github/workflows/create-release-branch.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/deploy-azure-webapps.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/deploy-storybook.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/nightly-cd.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/npm-release-publish.yml поставляемый
Просмотреть файл

@ -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:

5
.github/workflows/publish-chromatic.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/run-td-build.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/stress-test-ui-tests.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/update-api-files.yml поставляемый
Просмотреть файл

@ -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

5
.github/workflows/update-snapshot.yml поставляемый
Просмотреть файл

@ -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: