File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9090 AZURE_EXISTING_AI_PROJECT_RESOURCE_ID : ${{ inputs.AZURE_EXISTING_AI_PROJECT_RESOURCE_ID }}
9191 docker_image_tag : ${{ needs.docker-build.outputs.IMAGE_TAG }}
9292 run_e2e_tests : ${{ inputs.run_e2e_tests }}
93+ cleanup_resources : ${{ inputs.cleanup_resources }}
9394 secrets : inherit
9495
9596 e2e-test :
@@ -121,7 +122,7 @@ jobs:
121122 secrets : inherit
122123
123124 cleanup-deployment :
124- if : always() && needs.deploy.result == 'success' && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources == true || inputs.cleanup_resources == null )
125+ if : always() && needs.deploy.result == 'success' && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)
125126 needs : [docker-build, deploy, e2e-test]
126127 uses : ./.github/workflows/job-cleanup-deployment.yml
127128 with :
Original file line number Diff line number Diff line change 4444
4545jobs :
4646 cleanup-deployment :
47- if : inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources == true || inputs.cleanup_resources == null)
4847 runs-on : ${{ inputs.runner_os }}
4948 continue-on-error : true
5049 env :
Original file line number Diff line number Diff line change 9494 BRANCH_NAME : ${{ github.event.workflow_run.head_branch || github.head_ref || github.ref_name }}
9595 WAF_ENABLED : ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.waf_enabled || false) || false }}
9696 EXP : ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.EXP || false) || false }}
97- CLEANUP_RESOURCES : ${{ inputs.trigger_type == 'workflow_dispatch' && ( inputs.cleanup_resources || false) || true }}
97+ CLEANUP_RESOURCES : ${{ inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources }}
9898 RUN_E2E_TESTS : ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.run_e2e_tests || 'GoldenPath-Testing') || 'GoldenPath-Testing' }}
9999 BUILD_DOCKER_IMAGE : ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.build_docker_image || false) || false }}
100100
You can’t perform that action at this time.
0 commit comments