Skip to content

Commit

Permalink
fix: cache from branch, fallback to target branch
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Aug 16, 2024
1 parent 420961c commit b766d55
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ runs:
/home/runner/.cache/go-build
/home/runner/go/pkg/mod
/home/runner/go/bin
key: ${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('**/go.sum')-${{ github.ref_name }}
restore-keys: |
${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-
${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-
${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-
${{ runner.os }}-sage-${{ github.workflow }}-
${{ runner.os }}-sage-
${{ runner.os }}-sage-${{ github.workflow }}-${{ github.job }}-${{ inputs.cacheKey }}-${{ inputs.go-version }}-${{ hashFiles('**/go.sum')-${{ github.base_ref }}

0 comments on commit b766d55

Please sign in to comment.