Skip to content

Commit

Permalink
feat(GITHUB): upgrade actions/cache to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Feb 13, 2024
1 parent 38e8a96 commit c45df96
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/job-40-compose-run_cached_commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-95-mac_maker-apply_profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Binary file modified cicd-tools/boxes/0.1.0.tar.gz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c45df96

Please sign in to comment.