Skip to content

Commit

Permalink
Update cleanup step to use preflight outputs for cleanup options.
Browse files Browse the repository at this point in the history
  • Loading branch information
backwind1233 committed Nov 29, 2024
1 parent 027a4f8 commit b84d02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/setupOpenLibertyAks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ jobs:
echo "${appURL}" >> $GITHUB_STEP_SUMMARY
# Delete azure resources
cleanup:
name: provisioned resources will ${{ inputs.cleanupOptions }} automatically
name: provisioned resources will ${{ needs.preflight.outputs.cleanupOptions }} automatically
if: always()
needs: [preflight, deploy-db, deploy-openliberty-on-aks, deploy-azure-monitor, deploy-cargo-tracker]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -553,7 +553,7 @@ jobs:
- name: Delete Azure resources.
uses: azure/CLI@v1
if: ${{ env.cleanupOptions != 'never_delete' }}
if: ${{ needs.preflight.outputs.cleanupOptions != 'never_delete' }}
with:
azcliversion: ${{ env.azCliVersion }}
inlineScript: |
Expand Down

0 comments on commit b84d02c

Please sign in to comment.