Skip to content

Commit 5762a0e

Browse files
Fix cleanup condition to use string comparison for cleanup_resources input
1 parent 8e28674 commit 5762a0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy-Parameterized.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ jobs:
517517

518518
cleanup-deployment:
519519
# Cleanup for automatic triggers or when manually enabled (skip cleanup when using existing webapp URL)
520-
if: always() && needs.deploy.result != 'skipped' && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && (github.event_name != 'workflow_dispatch' || (github.event.inputs.cleanup_resources == true && github.event.inputs.existing_webapp_url == ''))
520+
if: always() && needs.deploy.result != 'skipped' && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && (github.event_name != 'workflow_dispatch' || (github.event.inputs.cleanup_resources == 'true' && github.event.inputs.existing_webapp_url == ''))
521521
needs: [deploy]
522522
runs-on: ubuntu-latest
523523
env:

0 commit comments

Comments
 (0)