Skip to content

Commit

Permalink
bypass cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Nov 24, 2023
1 parent addf6aa commit 107e42e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ runs:
- uses: actions/cache@v3
# in containers this has issues because github.workspace != $GITHUB_WORKSPACE
if: ${{ github.workspace }} == ${{ steps.os-cache.outputs.GITHUB_WORKSPACE }}
if: github.workspace == steps.os-cache.outputs.GITHUB_WORKSPACE
with:
path: |
~/.deno
${{ steps.os-cache.outputs.cache }}
# This isn't perfect (can't hash stuff outside $GITHUB_WORKSPACE, and if the there scripts change, the hash won't)
# This isn't perfect (can't hash stuff outside github.workspace, and if the there scripts change, the hash won't)
# additionally, in containerized runs, github.workspace != $GITHUB_WORKSPACE, so we can't use this at all, hence the if above.
# but it's good enough for now. It's slightly conservative, since it monitors all .ts files, but that's fine.
key: ${{ runner.os }}-deno-${{ inputs.cache-name }}-${{ hashFiles('**/deno.jsonc', '**/*.ts') }}

0 comments on commit 107e42e

Please sign in to comment.