Skip to content

Commit

Permalink
Set concurrency to repo-level
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora committed Nov 6, 2023
1 parent 8ee2412 commit 211125a
Show file tree
Hide file tree
Showing 18 changed files with 56 additions and 55 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bump-version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Bump Version Release

on:
workflow_call:
concurrency:

Check failure on line 6 in .github/workflows/bump-version-release.yaml

View workflow job for this annotation

GitHub Actions / actionlint

unexpected key "concurrency" for "workflow_call" section. expected one of "inputs", "secrets"
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-bump-version-release
cancel-in-progress: true
inputs:
release-type:
description: "Scope of the release (major, minor or patch)."
Expand Down Expand Up @@ -47,9 +50,6 @@ on:
jobs:
release:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-bump-version-release
cancel-in-progress: true
# Map the job outputs to step outputs
outputs:
release-version: ${{ steps.bump-version.outputs.release-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Docker build and publish

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-docker
cancel-in-progress: true
inputs:
docker-context:
description: "The docker context."
Expand Down Expand Up @@ -71,9 +74,6 @@ jobs:
docker-build:
name: Docker build
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-docker
cancel-in-progress: true
steps:
- name: Check out repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/helm-gke-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Helm GKE Deploy

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-deploy
cancel-in-progress: true
inputs:
release-name:
description: "Helm release name"
Expand Down Expand Up @@ -74,9 +77,6 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-deploy
cancel-in-progress: true
steps:
- name: Checkout repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/helm-gke-destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Helm GKE Destroy

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-destroy
cancel-in-progress: true
inputs:
release-name:
description: "Helm release name"
Expand Down Expand Up @@ -45,9 +48,6 @@ jobs:
destroy:
name: Destroy
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-destroy
cancel-in-progress: true
steps:
- name: Checkout repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/helm-multi-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Helm Multi Release

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-multi-release
cancel-in-progress: true
inputs:
charts-path:
description: "The directory containing the Helm chart(s)."
Expand Down Expand Up @@ -47,9 +50,6 @@ on:
jobs:
helm-lint:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-multi-release
cancel-in-progress: true
steps:
- name: Lint Helm chart
uses: bakdata/ci-templates/actions/[email protected]
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:

publish-artifacts:
runs-on: ubuntu-22.04
needs: [package-new-artifacts,update-version]
needs: [package-new-artifacts, update-version]
env:
artifact-dir: "${{ inputs.artifact-dir }}"
charts-path: "${{ inputs.artifact-dir }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Reusable workflow for packaging and publishing Helm charts on GitHub pages

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-release
cancel-in-progress: true
inputs:
page-url:
description: "URL to the GitHub pages website of the repository."
Expand Down Expand Up @@ -65,9 +68,6 @@ on:
jobs:
helm-lint:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-helm-release
cancel-in-progress: true
steps:
- name: Lint Helm chart
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
required: false
type: boolean
default: false
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-base
cancel-in-progress: true
gradle-cache:
description: "Whether Gradle caching is enabled or not. (Default is true)"
required: false
Expand Down Expand Up @@ -55,9 +58,6 @@ jobs:
build:
name: Build
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-base
cancel-in-progress: true
steps:
- name: Build
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Java Gradle Docker

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-docker
cancel-in-progress: true
inputs:
docker-publisher:
description: "Publisher to prefix Docker image."
Expand Down Expand Up @@ -70,9 +73,6 @@ on:

jobs:
build-and-test:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-docker
cancel-in-progress: true
name: Build, Test and Assess code quality
uses: bakdata/ci-templates/.github/workflows/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Java Gradle library

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-lib
cancel-in-progress: true
inputs:
java-distribution:
description: "Java distribution to be installed. (Default is microsoft)"
Expand Down Expand Up @@ -60,9 +63,6 @@ on:

jobs:
build-and-test:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-lib
cancel-in-progress: true
name: Build, Test and Assess code quality
uses: bakdata/ci-templates/.github/workflows/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Java Gradle plugin

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-plugin
cancel-in-progress: true
inputs:
java-distribution:
description: "Java distribution to be installed. (Default is microsoft)"
Expand Down Expand Up @@ -66,9 +69,6 @@ on:

jobs:
build-and-test:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-plugin
cancel-in-progress: true
name: Build, Test and Assess code quality
uses: bakdata/ci-templates/.github/workflows/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Java Gradle Release

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-release
cancel-in-progress: true
inputs:
release-type:
description: "Scope of the release (major, minor or patch)."
Expand Down Expand Up @@ -59,9 +62,6 @@ jobs:
release:
name: Release
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-release
cancel-in-progress: true

# Map the job outputs to step outputs
outputs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/kustomize-gke-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Kustomize GKE Deploy

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-kustomize-gke-deploy
cancel-in-progress: true
inputs:
kustomization-path:
description: "Path to the root directory of the kustomization"
Expand Down Expand Up @@ -46,9 +49,6 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-kustomize-gke-deploy
cancel-in-progress: true
steps:
- name: Checkout repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/kustomize-gke-destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Kustomize GKE Destroy

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-kustomize-gke-destroy
cancel-in-progress: true
inputs:
kustomization-path:
description: "Path to the root directory of the kustomization"
Expand Down Expand Up @@ -41,9 +44,6 @@ jobs:
destroy:
name: Destroy
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-kustomize-gke-destroy
cancel-in-progress: true
steps:
- name: Checkout repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-poetry-publish-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Reusable workflow for publishing to PyPI

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-python-poetry-publish-pypi
cancel-in-progress: true
inputs:
publish-to-test:
description: "If set to false, the packages are published to PyPI. (Default is true)"
Expand Down Expand Up @@ -32,9 +35,6 @@ jobs:
publish:
name: Publish
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-python-poetry-publish-pypi
cancel-in-progress: true
steps:
- name: Check out repository
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-poetry-publish-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Reusable workflow for publishing Python packages as snapshot

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-python-poetry-publish-snapshot
cancel-in-progress: true
inputs:
python-version:
description: "The Python version for setting up Poetry. (Default is 3.10)"
Expand Down Expand Up @@ -36,9 +39,6 @@ jobs:
publish-snapshot:
name: Publish snapshot
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-python-poetry-publish-snapshot
cancel-in-progress: true
# Map the job outputs to step outputs
outputs:
release-version: ${{ steps.bump-version.outputs.release-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-poetry-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Reusable workflow for building and releasing Python packages

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-python-poetry-release
cancel-in-progress: true
inputs:
release-type:
description: "Scope of the release; See: https://python-poetry.org/docs/cli/#version"
Expand Down Expand Up @@ -61,9 +64,6 @@ jobs:
create-release:
name: Release
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-python-poetry-release
cancel-in-progress: true
# Map the job outputs to step outputs
outputs:
release-version: ${{ steps.bump-version.outputs.release-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-tag-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Reusable workflow for releasing tag versions

on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-release-version
cancel-in-progress: true
inputs:
version-configs-dir:
description: "The Path to the directory containing the file where the versioning is defined and `.bumpversion.cfg` file."
Expand Down Expand Up @@ -34,9 +37,6 @@ on:
jobs:
bump_and_release:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-release-version
cancel-in-progress: true
steps:
- name: Check out default branch
uses: bakdata/ci-templates/actions/[email protected]
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test-python-setup-poetry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ on:
env:
POETRY_VERSION: "1.2.2"

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

jobs:
tests:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-test-python-setup-poetry
cancel-in-progress: true
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
Expand Down

0 comments on commit 211125a

Please sign in to comment.