Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Getting filename
id: filename
run: |
filename=$(git log -1 --format=%H).zip
filename="$(git log -1 --format=%H)-${GITHUB_RUN_NUMBER}.zip"
echo "filename=$filename" >> $GITHUB_OUTPUT

- name: Zip build folder
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: "Commit hash"
required: true
type: string
run_number:
description: "Workflow run number"
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -28,10 +32,17 @@ jobs:
role-to-assume: ${{ vars.AWS_ROLE }}
aws-region: ${{ vars.AWS_REGION }}

- name: Validate inputs
run: |
# ensure run_number is numeric
if ! [[ "${{ github.event.inputs.run_number }}" =~ ^[0-9]+$ ]]; then
echo "run_number must be numeric"; exit 1
fi

- name: Getting backup_path
id: backup_path
run: |
backup_path="s3://${{ vars.DEPLOYMENT_BUCKET_BACKUP }}/${{ github.event.inputs.commit_hash }}.zip"
backup_path="s3://${{ vars.DEPLOYMENT_BUCKET_BACKUP }}/${{ github.event.inputs.commit_hash }}-${{ github.event.inputs.run_number }}.zip"
echo "backup_path=$backup_path" >> $GITHUB_OUTPUT

- name: Check if ZIP file exists in S3
Expand Down
Loading
Loading