diff --git a/.github/actions/sync-from-snapshot/action.yml b/.github/actions/sync-from-snapshot/action.yml index 16654eef02..658eacbabc 100644 --- a/.github/actions/sync-from-snapshot/action.yml +++ b/.github/actions/sync-from-snapshot/action.yml @@ -10,7 +10,7 @@ inputs: type: string required: true snapshot-day: - description: "Day in date format %Y-%m-%d. If not given, current date is assumed." + description: "Day in date format %Y-%m-%d. If not given, current date - 1 day is assumed." type: string required: false aws-access-key-id: @@ -47,7 +47,7 @@ runs: shell: bash run: | if [[ '${{ inputs.snapshot-day }}' == "" ]]; then - snapshot_day=$(date "+%Y-%m-%d") + snapshot_day=$(date "+%Y-%m-%d" -d "1 day ago") else snapshot_day='${{ inputs.snapshot-day }}' fi diff --git a/.github/workflows/sync-from-snapshot-mainnet-paritydb-pruned.yml b/.github/workflows/sync-from-snapshot-mainnet-paritydb-pruned.yml index 3daf959c2f..ac71661c3c 100644 --- a/.github/workflows/sync-from-snapshot-mainnet-paritydb-pruned.yml +++ b/.github/workflows/sync-from-snapshot-mainnet-paritydb-pruned.yml @@ -7,14 +7,14 @@ name: Sync from snapshot, Mainnet, ParityDB pruned on: - # At 20:00 on Saturday + # At 15:00 on Sunday # Time corresponds with a snapshot creation time schedule: - - cron: '0 20 * * 6' + - cron: '0 15 * * 0' workflow_dispatch: inputs: snapshot-day: - description: "Day in date format %Y-%m-%d. If not given, current date is assumed." + description: "Day in date format %Y-%m-%d. If not given, current date - 1 day is assumed." type: string required: false default: '' diff --git a/.github/workflows/sync-from-snapshot-mainnet-paritydb.yml b/.github/workflows/sync-from-snapshot-mainnet-paritydb.yml index 9b6362470b..ad385756f3 100644 --- a/.github/workflows/sync-from-snapshot-mainnet-paritydb.yml +++ b/.github/workflows/sync-from-snapshot-mainnet-paritydb.yml @@ -7,14 +7,14 @@ name: Sync from snapshot test, Mainnet, ParityDB non-pruned on: - # At 21:00 on Saturday + # At 15:00 on Sunday # Time corresponds with a snapshot creation time schedule: - - cron: '0 21 * * 6' + - cron: '0 15 * * 0' workflow_dispatch: inputs: snapshot-day: - description: "Day in date format %Y-%m-%d. If not given, current date is assumed." + description: "Day in date format %Y-%m-%d. If not given, current date - 1 day is assumed." type: string required: false default: '' diff --git a/.github/workflows/sync-from-snapshot-mainnet.yml b/.github/workflows/sync-from-snapshot-mainnet.yml index 38995716d3..e9af26eedc 100644 --- a/.github/workflows/sync-from-snapshot-mainnet.yml +++ b/.github/workflows/sync-from-snapshot-mainnet.yml @@ -7,14 +7,14 @@ name: Sync from snapshot test, Mainnet, RocksDB on: - # At 22:00 on Saturday + # At 15:00 on Sunday # Time corresponds with a snapshot creation time schedule: - - cron: '0 22 * * 6' + - cron: '0 15 * * 0' workflow_dispatch: inputs: snapshot-day: - description: "Day in date format %Y-%m-%d. If not given, current date is assumed." + description: "Day in date format %Y-%m-%d. If not given, current date - 1 day is assumed." type: string required: false default: '' diff --git a/.github/workflows/sync-from-snapshot-testnet-paritydb-pruned.yml b/.github/workflows/sync-from-snapshot-testnet-paritydb-pruned.yml index 5ec1696f40..1b486e62f5 100644 --- a/.github/workflows/sync-from-snapshot-testnet-paritydb-pruned.yml +++ b/.github/workflows/sync-from-snapshot-testnet-paritydb-pruned.yml @@ -4,14 +4,14 @@ name: Sync from snapshot, Testnet, ParityDB pruned on: - # At 20:00 on Saturday + # At 15:00 on Sunday # Time corresponds with a snapshot creation time schedule: - - cron: '0 20 * * 6' + - cron: '0 15 * * 0' workflow_dispatch: inputs: snapshot-day: - description: "Day in date format %Y-%m-%d. If not given, current date is assumed." + description: "Day in date format %Y-%m-%d. If not given, current date - 1 day is assumed." type: string required: false default: '' diff --git a/.github/workflows/sync-from-snapshot-testnet-paritydb.yml b/.github/workflows/sync-from-snapshot-testnet-paritydb.yml index 7e11d3c43e..844ad2d326 100644 --- a/.github/workflows/sync-from-snapshot-testnet-paritydb.yml +++ b/.github/workflows/sync-from-snapshot-testnet-paritydb.yml @@ -4,14 +4,14 @@ name: Sync from snapshot test, Testnet, ParityDB non-pruned on: - # At 21:00 on Saturday + # At 15:00 on Sunday # Time corresponds with a snapshot creation time schedule: - - cron: '0 21 * * 6' + - cron: '0 15 * * 0' workflow_dispatch: inputs: snapshot-day: - description: "Day in date format %Y-%m-%d. If not given, current date is assumed." + description: "Day in date format %Y-%m-%d. If not given, current date - 1 day is assumed." type: string required: false default: '' diff --git a/.github/workflows/sync-from-snapshot-testnet.yml b/.github/workflows/sync-from-snapshot-testnet.yml index f589050c8e..080c3cc968 100644 --- a/.github/workflows/sync-from-snapshot-testnet.yml +++ b/.github/workflows/sync-from-snapshot-testnet.yml @@ -4,14 +4,14 @@ name: Sync from snapshot test, Testnet, RocksDB on: - # At 22:00 on Saturday + # At 15:00 on Sunday # Time corresponds with a snapshot creation time schedule: - - cron: '0 22 * * 6' + - cron: '0 15 * * 0' workflow_dispatch: inputs: snapshot-day: - description: "Day in date format %Y-%m-%d. If not given, current date is assumed." + description: "Day in date format %Y-%m-%d. If not given, current date - 1 day is assumed." type: string required: false default: ''