Skip to content

Network Synchronization #2405

Network Synchronization

Network Synchronization #2405

name: Network Synchronization
on:
schedule:
- cron: '00 06,18 * * *'
workflow_dispatch:
inputs:
synchronization-level:
description: 'Desired % synchronization level. Between 0 and 1.'
required: false
default: 1
type: number
jobs:
sync_and_cache:
strategy:
matrix:
network: [ preview ]
ogmios_version: [ v6.6.2 ]
cardano_node_version: [ 9.1.1 ]
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/[email protected]
- name: ⌚ Get Date/Time
id: date-time
shell: bash
run: |
echo "timestamp=$(/bin/date -u '+%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
- name: 💾 Cache cardano-node DB
id: cache
uses: actions/[email protected]
with:
path: ${{ runner.temp }}/db-${{ matrix.network }}
key: cardano-node-ogmios-${{ matrix.network }}-${{ steps.date-time.outputs.timestamp }}
restore-keys: |
cardano-node-ogmios-${{ matrix.network }}-
- name: ⟲ Sync Node
uses: CardanoSolutions/[email protected]
with:
db-dir: ${{ runner.temp }}/db-${{ matrix.network }}
network: ${{ matrix.network }}
version: ${{ matrix.ogmios_version }}_${{ matrix.cardano_node_version }}
synchronization-level: ${{ inputs.synchronization-level || 1 }}