Skip to content

Commit

Permalink
Switch from run_id to hashFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Jun 5, 2024
1 parent e9ce82f commit 5b49bd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/setup-runner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
flutter-version:
description: Flutter version to use.
default: stable
cache-key:
description: Cache key to use for restoring and saving the cache.
default: ${{ hashFiles('**/pubspec.yaml') }}


runs:
using: "composite"
Expand Down Expand Up @@ -32,7 +36,7 @@ runs:
uses: actions/cache/restore@v4
with:
path: ${{ env.PURO_ROOT }}
key: setup-runner-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}
key: setup-runner-${{ runner.os }}-${{ runner.arch }}-${{ inputs.cache-key }}
restore-keys: setup-runner-${{ runner.os }}-${{ runner.arch }}-

- name: Install puro (posix)
Expand Down

0 comments on commit 5b49bd5

Please sign in to comment.