From 5cc12d22a8bf22575e7818a56368e1774ac5c1fc Mon Sep 17 00:00:00 2001 From: Colin Saliceti Date: Mon, 15 Jul 2024 13:36:19 +0100 Subject: [PATCH] WIP --- .github/workflows/database_restore.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/database_restore.yml b/.github/workflows/database_restore.yml index 0de1903eb1..f8c83aa469 100644 --- a/.github/workflows/database_restore.yml +++ b/.github/workflows/database_restore.yml @@ -25,7 +25,7 @@ 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 @@ -33,6 +33,7 @@ jobs: 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