mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-13 01:46:52 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26bda12c02 | ||
|
|
08f6ca9894 |
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
run: 'write("random.txt", string(rand(10)))'
|
||||
- name: Set cache-name as output
|
||||
id: name
|
||||
run: echo "::set-output name=cache-name::${{ hashFiles('random.txt') }}"
|
||||
run: echo "cache-name=${{ hashFiles('random.txt') }}" >> $GITHUB_OUTPUT
|
||||
|
||||
test-save:
|
||||
needs: generate-key
|
||||
|
||||
@@ -47,7 +47,7 @@ runs:
|
||||
${{ runner.os }}-test-${{ inputs.cache-name }}-
|
||||
|
||||
- id: hit
|
||||
run: echo "::set-output name=cache-hit::$(echo $CACHE_HIT)"
|
||||
run: echo "cache-hit=$CACHE_HIT" >> $GITHUB_OUTPUT
|
||||
env:
|
||||
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user