mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-10 05:23:18 +01:00
fixed bad yaml in README example
This commit is contained in:
parent
c3f1317a9e
commit
02be3a9c73
1 changed files with 24 additions and 24 deletions
48
README.md
48
README.md
|
@ -172,33 +172,33 @@ jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Primes
|
- name: Cache Primes
|
||||||
id: cache-primes
|
id: cache-primes
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: prime-numbers
|
path: prime-numbers
|
||||||
key: primes
|
key: primes
|
||||||
|
|
||||||
- name: Generate Prime Numbers
|
- name: Generate Prime Numbers
|
||||||
if: steps.cache-primes.outputs.cache-hit != 'true'
|
if: steps.cache-primes.outputs.cache-hit != 'true'
|
||||||
run: ./generate-primes.sh -d prime-numbers
|
run: ./generate-primes.sh -d prime-numbers
|
||||||
|
|
||||||
- name: Cache Numbers
|
|
||||||
id: cache-numbers
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: numbers
|
|
||||||
key: primes
|
|
||||||
|
|
||||||
- name: Generate Numbers
|
- name: Cache Numbers
|
||||||
if: steps.cache-numbers.outputs.cache-hit != 'true'
|
id: cache-numbers
|
||||||
run: ./generate-primes.sh -d numbers
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
build-windows:
|
path: numbers
|
||||||
runs-on: windows-latest
|
key: primes
|
||||||
steps:
|
|
||||||
|
- name: Generate Numbers
|
||||||
|
if: steps.cache-numbers.outputs.cache-hit != 'true'
|
||||||
|
run: ./generate-primes.sh -d numbers
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Cache Primes
|
- name: Cache Primes
|
||||||
|
|
Loading…
Reference in a new issue