Skip to content

Commit 167bb5b

Browse files
committed
chore: on push events, also replace cardano-node db cache.
This is to avoid loosing the cardano-node db cache if we do many many merges into 'main'. Indeed, too many merges would likely push us over the max cache size limit, and results in GitHub pruning our oldest cache entries which will likely be, the node db. So it is paramount to also re-upload new databases with a fresh timestamp, just in case. Signed-off-by: KtorZ <[email protected]>
1 parent 4cbd956 commit 167bb5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/CI.yml

+6
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ jobs:
228228
docker stop cardano-node
229229
docker rm cardano-node
230230
231+
- uses: actions/cache/save@v4
232+
if: github.event_name == 'push'
233+
with:
234+
path: ${{ runner.temp }}/db-${{ matrix.network }}
235+
key: cardano-node-ogmios-${{ matrix.network }}-${{ steps.timestamp.outputs.value }}
236+
231237
examples:
232238
name: Examples
233239
strategy:

0 commit comments

Comments
 (0)