Skip to content

Commit

Permalink
Merge pull request #1826 from moreal/all-snapshot-reset
Browse files Browse the repository at this point in the history
Support 'all' option when resetting internal snapshot
  • Loading branch information
moreal authored Jul 1, 2024
2 parents 248a709 + b464b95 commit aef7438
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/snapshot-reset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,38 @@ on:
options:
- odin
- heimdall
- all

concurrency:
group: release

jobs:
release:
release-odin:
if: ${{ github.event.inputs.chain }} == 'odin' || ${{ github.event.inputs.chain }} == 'all'
runs-on: ubuntu-latest
environment:
name: internal
steps:
- uses: actions/checkout@v3
- name: reset internal snapshot
run: |
echo "y" | bash .github/scripts/reset-snapshot.sh "${{ github.event.inputs.chain }}"
echo "y" | bash .github/scripts/reset-snapshot.sh odin
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}

release-heimdall:
if: ${{ github.event.inputs.chain }} == 'heimdall' || ${{ github.event.inputs.chain }} == 'all'
runs-on: ubuntu-latest
environment:
name: internal
steps:
- uses: actions/checkout@v3
- name: reset internal snapshot
run: |
echo "y" | bash .github/scripts/reset-snapshot.sh heimdall
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -32,7 +50,7 @@ jobs:

reset-bridge-service:
runs-on: ubuntu-latest
needs: release
needs: [release-odin, release-heimdall]

steps:
- name: Checkout Repository
Expand Down

0 comments on commit aef7438

Please sign in to comment.