Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Jul 15, 2024
1 parent 4cdb8c5 commit 5cc12d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/database_restore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ jobs:
steps:
- name: Set backup file
run:
if ${{ inputs.backup-file }} != ""; then
if [ ${{ inputs.backup-file }} != "" ]; then
BACKUP_FILE=${{ inputs.backup-file }}
else
BACKUP_FILE=capt_prod_$(date +"%F").sql.gz
fi
echo "BACKUP_FILE=$BACKUP_FILE" >> $GITHUB_ENV

- name: Restore postgres
if: inputs.backup-file == "true"
uses: DFE-Digital/github-actions/restore-postgres-backup@master
with:
storage-account: s189p01captdbbkppdsa
Expand Down

0 comments on commit 5cc12d2

Please sign in to comment.