diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 7aebd97..2a0e190 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -8,6 +8,10 @@ on: permissions: contents: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: PRODUCTION_VCS_REF: refs/heads/master # Keep in sync with the branch list in `jobs.release.if`. STAGING_VCS_REF: refs/heads/develop # Keep in sync with the branch list in `jobs.release.if`. diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aa715cc..0a12ec5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -90,6 +90,7 @@ jobs: with: path: ".pyenv" key: py-v1-deps-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }} + fail-on-cache-miss: true - name: Set Tox Environment id: set_tox_environment diff --git a/.github/workflows/dependency-review.yaml b/.github/workflows/dependency-review.yaml index bff7184..2a99b6a 100644 --- a/.github/workflows/dependency-review.yaml +++ b/.github/workflows/dependency-review.yaml @@ -10,6 +10,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: dependency-review: name: Dependency Review diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3f69ffd..87467ed 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -40,6 +40,7 @@ jobs: with: path: ".pyenv" key: py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }} + fail-on-cache-miss: true - name: Restore Artifacts (Release) uses: actions/download-artifact@v3.0.2 diff --git a/.github/workflows/git-commit-lint.yaml b/.github/workflows/git-commit-lint.yaml index 2f60b4f..59aee58 100644 --- a/.github/workflows/git-commit-lint.yaml +++ b/.github/workflows/git-commit-lint.yaml @@ -12,6 +12,10 @@ on: permissions: contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: git-commit-lint: name: Git Commit Linter diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 676c1ef..9d738e5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -51,6 +51,7 @@ jobs: with: path: ".pyenv" key: py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }} + fail-on-cache-miss: true - name: Install Dependencies run: | diff --git a/.github/workflows/super-linter.yaml b/.github/workflows/super-linter.yaml index 23ce3bc..34c63d1 100644 --- a/.github/workflows/super-linter.yaml +++ b/.github/workflows/super-linter.yaml @@ -24,6 +24,10 @@ permissions: statuses: write checks: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: super-linter: name: Super-Linter