From f1381f4f5519c8f97785302eda252a24369f48f2 Mon Sep 17 00:00:00 2001 From: ranbeersingh1 Date: Tue, 28 Nov 2023 10:38:36 +0000 Subject: [PATCH] Check step outcome --- .github/workflows/oracle-db-backup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/oracle-db-backup.yml b/.github/workflows/oracle-db-backup.yml index f8dc3bdf..261e6a5a 100644 --- a/.github/workflows/oracle-db-backup.yml +++ b/.github/workflows/oracle-db-backup.yml @@ -187,7 +187,7 @@ jobs: run: $backup_command -i $inventory -e rman_target=$RmanTarget -e daily_weekly=$Period -e enable_trace=$EnableTrace $VerboseOutput - name: Start Ansible Backup On First Standby (If Exists) If Primary Backup Failed - if: ${{ job.steps.backup.status == failure() && contains(env.RmanTarget,'primarydb') }} + if: ${{ steps.backup.outcome == 'failure' && contains(env.RmanTarget,'primarydb') }} shell: bash run: | if [[ -e ${inventory}/group_vars/${RmanTarget/primarydb/standbydb1}.yml ]]