From c45df9687d04c6bd365a69604f164ca77e7e77eb Mon Sep 17 00:00:00 2001 From: Niall Byrne <9848926+niall-byrne@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:26:22 -0500 Subject: [PATCH] feat(GITHUB): upgrade actions/cache to v4 --- .../job-40-compose-run_cached_commands.yml | 2 +- ...b-50-poetry-test_basic_precommit_hooks.yml | 2 +- ...okiecutter-precommit_commit_stage_hook.yml | 2 +- ...-80-poetry-precommit_commit_stage_hook.yml | 2 +- .../job-95-mac_maker-apply_profile.yml | 2 +- cicd-tools/boxes/0.1.0.tar.gz | Bin 15928 -> 15928 bytes .../action-05-cookiecutter-render/action.yml | 2 +- .../action-05-npm-dependencies/action.yml | 2 +- .../action-05-poetry-dependencies/action.yml | 2 +- .../action-20-generic-cache/action.yml | 2 +- 10 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/job-40-compose-run_cached_commands.yml b/.github/workflows/job-40-compose-run_cached_commands.yml index b0f191b3..c4bd09d2 100644 --- a/.github/workflows/job-40-compose-run_cached_commands.yml +++ b/.github/workflows/job-40-compose-run_cached_commands.yml @@ -194,7 +194,7 @@ jobs: - name: Compose Command Sequence -- Populate the Mounted Cache Folder -- '${{ inputs.EXECUTION_PATH }}/${{ inputs.COMPOSE_MOUNTED_CACHE_FOLDER }}' if: inputs.COMPOSE_MOUNTED_CACHE_FOLDER != '' && inputs.COMPOSE_MOUNTED_CACHE_KEY_FILE != '' - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: compose-cache-folder-${{ hashFiles(format('{0}/{1}', inputs.EXECUTION_PATH, inputs.COMPOSE_MOUNTED_CACHE_KEY_FILE )) }}-${{ steps.CACHING_CONFIGURATION.outputs.BUILDX_CACHE_KEY }}-${{ env.CACHE_TTL }} path: ${{ inputs.EXECUTION_PATH }}/${{ inputs.COMPOSE_MOUNTED_CACHE_FOLDER }} diff --git a/.github/workflows/job-50-poetry-test_basic_precommit_hooks.yml b/.github/workflows/job-50-poetry-test_basic_precommit_hooks.yml index 618b2f24..19b8c5c8 100644 --- a/.github/workflows/job-50-poetry-test_basic_precommit_hooks.yml +++ b/.github/workflows/job-50-poetry-test_basic_precommit_hooks.yml @@ -92,7 +92,7 @@ jobs: uses: ./.cicd-tools/boxes/active/ci/github/actions/action-05-poetry-dependencies - name: Pre-Commit Test -- Mount Pre-Commit Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: pre-commit-${{ hashFiles('./.pre-commit-config.yaml') }}-${{ runner.os }}-${{ env.CACHE_TTL }} path: ~/.cache/pre-commit diff --git a/.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml b/.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml index b536ab9d..e08cc1ff 100644 --- a/.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml +++ b/.github/workflows/job-80-cookiecutter-precommit_commit_stage_hook.yml @@ -101,7 +101,7 @@ jobs: SCENARIO: ${{ matrix.scenario }} - name: ${{ inputs.PRECOMMIT_HOOK_NAME }} -- (COOKIECUTTER) Mount Pre-Commit Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: pre-commit-${{ hashFiles('./template/.pre-commit-config.yaml') }}-${{ hashFiles('./template/{{cookiecutter.project_slug}}/.pre-commit-config.yaml') }}-${{ runner.os }}-${{ env.CACHE_TTL }} path: ~/.cache/pre-commit diff --git a/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml b/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml index ab80bfb8..3babb35e 100644 --- a/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml +++ b/.github/workflows/job-80-poetry-precommit_commit_stage_hook.yml @@ -79,7 +79,7 @@ jobs: uses: ./.github/actions/action-00-toolbox - name: ${{ inputs.PRECOMMIT_HOOK_NAME }} -- Mount Pre-Commit Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}-${{ runner.os }}-${{ env.CACHE_TTL }} path: ~/.cache/pre-commit diff --git a/.github/workflows/job-95-mac_maker-apply_profile.yml b/.github/workflows/job-95-mac_maker-apply_profile.yml index ef171864..a6d66c8b 100644 --- a/.github/workflows/job-95-mac_maker-apply_profile.yml +++ b/.github/workflows/job-95-mac_maker-apply_profile.yml @@ -106,7 +106,7 @@ jobs: shell: bash - name: Apply Mac Maker Profile -- Setup Homebrew Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ inputs.CACHE_FOLDERS }} key: mac_maker-${{ matrix.os }}-${{ matrix.architecture }}-${{ steps.remote_origin_hash.outputs.value }}-${{ env.CACHE_TTL }} diff --git a/cicd-tools/boxes/0.1.0.tar.gz b/cicd-tools/boxes/0.1.0.tar.gz index 9989657cc3bb870403d9169eb499172485ce609c..3a7c315c4ba48f79f1c022d5ba58c57512436995 100644 GIT binary patch delta 23 fcmdl{v!iCi4LQc#%{S%3gOLFMhvN!c diff --git a/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-cookiecutter-render/action.yml b/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-cookiecutter-render/action.yml index a06b9d60..8f0908fe 100644 --- a/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-cookiecutter-render/action.yml +++ b/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-cookiecutter-render/action.yml @@ -30,7 +30,7 @@ runs: - name: Cookiecutter -- Mount Poetry Cache if: env.TEMPLATE_SKIP_POETRY != '1' - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: poetry-${{ hashFiles(format('{0}/{{{{cookiecutter.project_slug}}}}/pyproject.toml', inputs.PROJECT_ROOT_PATH)) }}-${{ runner.os }}-${{ env.CACHE_TTL }} path: ~/.cache/pypoetry/virtualenvs diff --git a/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-npm-dependencies/action.yml b/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-npm-dependencies/action.yml index ad3be85e..81ffa079 100644 --- a/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-npm-dependencies/action.yml +++ b/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-npm-dependencies/action.yml @@ -32,7 +32,7 @@ runs: shell: bash - name: Dependencies (Node) -- Mount NPM Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: npm-${{ hashFiles(format('{0}/package-lock.json', inputs.PROJECT_ROOT_PATH)) }}-${{ runner.os }}-${{ env.CACHE_TTL }} path: | diff --git a/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-poetry-dependencies/action.yml b/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-poetry-dependencies/action.yml index 451c6f7e..4c499ea7 100644 --- a/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-poetry-dependencies/action.yml +++ b/cicd-tools/boxes/0.1.0/ci/github/actions/action-05-poetry-dependencies/action.yml @@ -41,7 +41,7 @@ runs: shell: bash - name: Dependencies (Python) -- Mount Poetry Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: poetry-${{ hashFiles(format('{0}/pyproject.toml', inputs.PROJECT_ROOT_PATH)) }}-${{ runner.os }}-${{ env.CACHE_TTL }} path: ${{ steps.poetry_venv_path.outputs.POETRY_LOCATION }} diff --git a/cicd-tools/boxes/0.1.0/ci/github/actions/action-20-generic-cache/action.yml b/cicd-tools/boxes/0.1.0/ci/github/actions/action-20-generic-cache/action.yml index 6be8b94d..0724114f 100644 --- a/cicd-tools/boxes/0.1.0/ci/github/actions/action-20-generic-cache/action.yml +++ b/cicd-tools/boxes/0.1.0/ci/github/actions/action-20-generic-cache/action.yml @@ -38,7 +38,7 @@ runs: shell: bash - name: Generic Cache -- Mount Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: ${{ inputs.CACHE_KEY }} path: .github/cache/${{ inputs.CACHE_NAME }}