Skip to content

Commit

Permalink
Check step outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbeersingh1 committed Nov 28, 2023
1 parent f4c4048 commit f1381f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/oracle-db-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]]
Expand Down

0 comments on commit f1381f4

Please sign in to comment.