Skip to content

Commit 107e42e

Browse files
committed
bypass cache
closes pkgxdev/pantry#4195 closes pkgxdev/pantry#4197
1 parent addf6aa commit 107e42e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

actions/cache/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ runs:
2121
2222
- uses: actions/cache@v3
2323
# in containers this has issues because github.workspace != $GITHUB_WORKSPACE
24-
if: ${{ github.workspace }} == ${{ steps.os-cache.outputs.GITHUB_WORKSPACE }}
24+
if: github.workspace == steps.os-cache.outputs.GITHUB_WORKSPACE
2525
with:
2626
path: |
2727
~/.deno
2828
${{ steps.os-cache.outputs.cache }}
29-
# This isn't perfect (can't hash stuff outside $GITHUB_WORKSPACE, and if the there scripts change, the hash won't)
29+
# This isn't perfect (can't hash stuff outside github.workspace, and if the there scripts change, the hash won't)
30+
# additionally, in containerized runs, github.workspace != $GITHUB_WORKSPACE, so we can't use this at all, hence the if above.
3031
# but it's good enough for now. It's slightly conservative, since it monitors all .ts files, but that's fine.
3132
key: ${{ runner.os }}-deno-${{ inputs.cache-name }}-${{ hashFiles('**/deno.jsonc', '**/*.ts') }}

0 commit comments

Comments
 (0)