Skip to content

Commit f7f8682

Browse files
authored
Update documentation
- Use time in cache key - Use network name in host db directory
1 parent 6e4b7f2 commit f7f8682

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ strategy:
3535
steps:
3636
- uses: actions/checkout@v2
3737

38-
- id: date
38+
- id: date-time
3939
shell: bash
4040
run: |
41-
echo "::set-output name=value::$(/bin/date -u "+%Y%m%d")"
41+
echo "::set-output name=value::$(/bin/date -u "+%Y%m%d-%H%M%S")"
4242
4343
- uses: actions/cache@v2
4444
with:
45-
path: ${{ runner.temp }}/db
46-
key: cardano-node-${{ matrix.network }}-${{ steps.date.outputs.value }}
45+
path: ${{ runner.temp }}/db-${{ matrix.network }}
46+
key: cardano-node-${{ matrix.network }}-${{ steps.date-time.outputs.value }}
4747
restore-keys: |
4848
cardano-node-${{ matrix.network }}
4949
5050
- uses: CardanoSolutions/cardano-node-ogmios-docker-sync@v1
5151
with:
52-
db-dir: ${{ runner.temp }}/db
52+
db-dir: ${{ runner.temp }}/db-${{ matrix.network }}
5353
network: ${{ matrix.network }}
5454
```

0 commit comments

Comments
 (0)