Skip to content

Commit

Permalink
Changed snapshot day to Sunday
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Feb 5, 2025
1 parent 478e533 commit 0334ee1
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/actions/sync-from-snapshot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sync-from-snapshot-mainnet-paritydb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sync-from-snapshot-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sync-from-snapshot-testnet-paritydb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sync-from-snapshot-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
Expand Down

0 comments on commit 0334ee1

Please sign in to comment.