Skip to content

Commit

Permalink
Update actions/cache action to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Apr 28, 2024
1 parent d0c0f97 commit a95dd9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: sudo apt-get -qq update && sudo apt-get install -y jq

- id: cache
uses: actions/cache@v1
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/test_requirements.txt') }}
Expand Down
4 changes: 2 additions & 2 deletions {{ cookiecutter.project_name }}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
python-version: "3.9"

- id: cache
uses: actions/cache@v1
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.cache/pip
key: ${{ "{{" }} runner.os }}-pip-${{ "{{" }} hashFiles('**/requirements.txt', '**/test_requirements.txt') }}
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ "{{" }} steps.yarn-cache-dir-path.outputs.dir }}
Expand Down

0 comments on commit a95dd9f

Please sign in to comment.