Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKora committed Nov 6, 2023
1 parent 6cdcf7b commit 599a850
Show file tree
Hide file tree
Showing 18 changed files with 68 additions and 55 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/bump-version-release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Bump Version Release
# Reusable workflow for creating release tags using bumpversion

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

on:
workflow_call:
inputs:
Expand Down Expand Up @@ -43,9 +47,6 @@ on:
old-version:
description: "The old version in your `.bumpversion.cfg` file."
value: ${{ jobs.release.outputs.old-version }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-bump-version-release
cancel-in-progress: true

jobs:
release:
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
@@ -1,11 +1,11 @@
name: Docker build and publish
# Reusable workflow to build and push an image from a Dockerfile to any container registry

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-docker
cancel-in-progress: true
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
7 changes: 4 additions & 3 deletions .github/workflows/helm-gke-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Helm GKE Deploy
# Reusable workflow for deploying a Helm chart on GKE Kubernetes

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

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
7 changes: 4 additions & 3 deletions .github/workflows/helm-gke-destroy.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Helm GKE Destroy
# Reusable workflow for destroying a Helm chart on GKE Kubernetes

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

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
7 changes: 4 additions & 3 deletions .github/workflows/helm-multi-release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Helm Multi Release
# Reusable workflow for packaging and publishing Helm charts having multiple subcharts on GitHub pages

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

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
7 changes: 4 additions & 3 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Reusable workflow for packaging and publishing Helm charts on GitHub pages

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

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
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-base.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Java Gradle Base
# Reusable workflow for building testing and assessing code quality

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-base
cancel-in-progress: true
on:
workflow_call:
inputs:
Expand All @@ -9,9 +12,6 @@ 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
7 changes: 4 additions & 3 deletions .github/workflows/java-gradle-docker.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Java Gradle Docker
# Reusable workflow for building and publishing Java Gradle artifacts including a tarball image

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

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
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-library.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Java Gradle library
# Reusable workflow for building and publishing Java Gradle libraries

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-lib
cancel-in-progress: true
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
6 changes: 3 additions & 3 deletions .github/workflows/java-gradle-plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Java Gradle plugin
# Reusable workflow for building and publishing Java Gradle plugins on the Gradle Plugin Portal

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-java-gradle-plugin
cancel-in-progress: true
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
7 changes: 4 additions & 3 deletions .github/workflows/java-gradle-release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Java Gradle Release
# Reusable workflow for releasing Java Gradle projects

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

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
7 changes: 4 additions & 3 deletions .github/workflows/kustomize-gke-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Kustomize GKE Deploy
# Reusable workflow for deploying resources with Kustomize on GKE Kubernetes

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

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
7 changes: 4 additions & 3 deletions .github/workflows/kustomize-gke-destroy.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Kustomize GKE Destroy
# Reusable workflow for destroying resources with Kustomize on GKE Kubernetes

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

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
7 changes: 4 additions & 3 deletions .github/workflows/python-poetry-publish-pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Reusable workflow for publishing to PyPI

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

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
7 changes: 4 additions & 3 deletions .github/workflows/python-poetry-publish-snapshot.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Reusable workflow for publishing Python packages as snapshot

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

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
7 changes: 4 additions & 3 deletions .github/workflows/python-poetry-release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Reusable workflow for building and releasing Python packages

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

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
7 changes: 4 additions & 3 deletions .github/workflows/release-tag-versions.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Reusable workflow for releasing tag versions

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

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
8 changes: 4 additions & 4 deletions .github/workflows/test-python-setup-poetry.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Test python-setup-poetry action

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

on:
pull_request:
branches:
Expand All @@ -11,10 +15,6 @@ 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:
name: ${{ matrix.os }} / ${{ matrix.python-version }}
Expand Down

0 comments on commit 599a850

Please sign in to comment.