Skip to content

Commit

Permalink
A0-4610: Added support for overriding snapshot say
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Feb 5, 2025
1 parent 05418fa commit 478e533
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
schedule:
- cron: '0 20 * * 6'
workflow_dispatch:
inputs:
snapshot-day:
description: "Day in date format %Y-%m-%d. If not given, current date is assumed."
type: string
required: false
default: ''

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -48,6 +54,7 @@ jobs:
args: --mainnet --parity-db --pruned
aws-access-key-id: ${{ secrets.AWS_MAINNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_MAINNET_S3_SECRET_ACCESS_KEY }}
snapshot-day: ${{ inputs.snapshot-day }}

slack-notification:
name: Slack notification
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sync-from-snapshot-mainnet-paritydb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
schedule:
- cron: '0 21 * * 6'
workflow_dispatch:
inputs:
snapshot-day:
description: "Day in date format %Y-%m-%d. If not given, current date is assumed."
type: string
required: false
default: ''

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -48,6 +54,7 @@ jobs:
args: --mainnet --parity-db
aws-access-key-id: ${{ secrets.AWS_MAINNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_MAINNET_S3_SECRET_ACCESS_KEY }}
snapshot-day: ${{ inputs.snapshot-day }}

slack-notification:
name: Slack notification
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sync-from-snapshot-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
schedule:
- cron: '0 22 * * 6'
workflow_dispatch:
inputs:
snapshot-day:
description: "Day in date format %Y-%m-%d. If not given, current date is assumed."
type: string
required: false
default: ''

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -48,6 +54,7 @@ jobs:
args: --mainnet
aws-access-key-id: ${{ secrets.AWS_MAINNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_MAINNET_S3_SECRET_ACCESS_KEY }}
snapshot-day: ${{ inputs.snapshot-day }}

slack-notification:
name: Slack notification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
schedule:
- cron: '0 20 * * 6'
workflow_dispatch:
inputs:
snapshot-day:
description: "Day in date format %Y-%m-%d. If not given, current date is assumed."
type: string
required: false
default: ''

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -45,6 +51,7 @@ jobs:
args: --testnet --parity-db --pruned
aws-access-key-id: ${{ secrets.AWS_TESTNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_TESTNET_S3_SECRET_ACCESS_KEY }}
snapshot-day: ${{ inputs.snapshot-day }}

slack-notification:
name: Slack notification
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sync-from-snapshot-testnet-paritydb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
schedule:
- cron: '0 21 * * 6'
workflow_dispatch:
inputs:
snapshot-day:
description: "Day in date format %Y-%m-%d. If not given, current date is assumed."
type: string
required: false
default: ''

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -45,6 +51,7 @@ jobs:
args: --testnet --parity-db
aws-access-key-id: ${{ secrets.AWS_TESTNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_TESTNET_S3_SECRET_ACCESS_KEY }}
snapshot-day: ${{ inputs.snapshot-day }}

slack-notification:
name: Slack notification
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sync-from-snapshot-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
schedule:
- cron: '0 22 * * 6'
workflow_dispatch:
inputs:
snapshot-day:
description: "Day in date format %Y-%m-%d. If not given, current date is assumed."
type: string
required: false
default: ''

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -45,6 +51,7 @@ jobs:
args: --testnet
aws-access-key-id: ${{ secrets.AWS_TESTNET_S3_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_TESTNET_S3_SECRET_ACCESS_KEY }}
snapshot-day: ${{ inputs.snapshot-day }}

slack-notification:
name: Slack notification
Expand Down

0 comments on commit 478e533

Please sign in to comment.