mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-15 18:46:54 +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)))'
|
run: 'write("random.txt", string(rand(10)))'
|
||||||
- name: Set cache-name as output
|
- name: Set cache-name as output
|
||||||
id: name
|
id: name
|
||||||
run: echo "::set-output name=cache-name::${{ hashFiles('random.txt') }}"
|
run: echo "cache-name=${{ hashFiles('random.txt') }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
test-save:
|
test-save:
|
||||||
needs: generate-key
|
needs: generate-key
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ runs:
|
|||||||
${{ runner.os }}-test-${{ inputs.cache-name }}-
|
${{ runner.os }}-test-${{ inputs.cache-name }}-
|
||||||
|
|
||||||
- id: hit
|
- id: hit
|
||||||
run: echo "::set-output name=cache-hit::$(echo $CACHE_HIT)"
|
run: echo "cache-hit=$CACHE_HIT" >> $GITHUB_OUTPUT
|
||||||
env:
|
env:
|
||||||
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
CACHE_HIT: ${{ steps.cache.outputs.cache-hit }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user