From cbb26e95ea7ea65d7c5af524482cfb804fe425e0 Mon Sep 17 00:00:00 2001 From: Pietro Delsante Date: Thu, 23 Jul 2026 14:40:04 +0200 Subject: [PATCH] Fix always-truthy if expression in _detect_changes.yml The "Generate summary" step's if condition combined three separate ${{ }} expressions with literal | characters, which GitHub Actions treats as literal text outside the replacement tokens - making the whole condition always evaluate to truthy regardless of input values. Combine into a single expression using the || operator instead. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/_detect_changes.yml | 2 +- workflows/_detect_changes.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_detect_changes.yml b/.github/workflows/_detect_changes.yml index 7cb82d3..8c9cb8b 100644 --- a/.github/workflows/_detect_changes.yml +++ b/.github/workflows/_detect_changes.yml @@ -72,7 +72,7 @@ jobs: clean: false - name: Generate summary - if: ${{inputs.backend_directories != ''}} | ${{inputs.frontend_directories != ''}} | ${{inputs.infrastructure_directories != ''}} + if: ${{ inputs.backend_directories != '' || inputs.frontend_directories != '' || inputs.infrastructure_directories != '' }} run: | echo "### Detect Changes summary" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY diff --git a/workflows/_detect_changes.yml b/workflows/_detect_changes.yml index 7cb82d3..8c9cb8b 100644 --- a/workflows/_detect_changes.yml +++ b/workflows/_detect_changes.yml @@ -72,7 +72,7 @@ jobs: clean: false - name: Generate summary - if: ${{inputs.backend_directories != ''}} | ${{inputs.frontend_directories != ''}} | ${{inputs.infrastructure_directories != ''}} + if: ${{ inputs.backend_directories != '' || inputs.frontend_directories != '' || inputs.infrastructure_directories != '' }} run: | echo "### Detect Changes summary" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY