Skip to content

Commit

Permalink
Remove RmanTarget environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ranbeersingh1 committed Oct 12, 2023
1 parent c7f01ea commit 39096e5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/oracle-db-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ jobs:
DeleteDefunct: "${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.DeleteDefunct || (github.event_name == 'schedule' && inputs.DeleteDefunct || 'no')) }}"
EnableTrace: "${{ github.event_name == 'workflow_dispatch' && github.event.inputs.EnableTrace || 'no' }}"
VerboseOutput: "${{ github.event_name == 'workflow_dispatch' && github.event.inputs.VerboseOutput || '' }}"
RmanTarget: "environment_name_${{ TargetEnvironment }}_${{ TargetHost }}"
continue-on-error: false
steps:

Expand Down Expand Up @@ -163,12 +162,12 @@ jobs:
aws-region: ${{ secrets.AWS_REGION }}

- name: Start Ansible Backup
run: $backup_command -i $inventory -e rman_target=$RmanTarget -e daily_weekly=$Period -e enable_trace=$EnableTrace $VerboseOutput
run: $backup_command -i $inventory -e rman_target="environment_name_${{env.TargetEnvironment}}_${{env.TargetHost}}" -e daily_weekly=$Period -e enable_trace=$EnableTrace $VerboseOutput

- name: Start Ansible Validate And Fix Absent Chunks
run: $validate_command -i $inventory -e rman_target=$RmanTarget -e fix_absent_chunks=$FixAbsentChunks $VerboseOutput
run: $validate_command -i $inventory -e rman_target="environment_name_${{env.TargetEnvironment}}_${{env.TargetHost}}" -e fix_absent_chunks=$FixAbsentChunks $VerboseOutput

- name: Start Ansible Delete DBIDs Not In Use
if: ${{ env.DeleteDefunct == 'yes' }}
run: $delete_dbids_command -i $inventory -e rman_target=$RmanTarget $VerboseOutput
run: $delete_dbids_command -i $inventory -e rman_target="environment_name_${{env.TargetEnvironment}}_${{env.TargetHost}}" $VerboseOutput

0 comments on commit 39096e5

Please sign in to comment.