Skip to content

Commit 9da5eb0

Browse files
committed
fix: stop interpolating workflow inputs into shell
1 parent abcf14c commit 9da5eb0

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/analyze-releases-for-adk-docs-updates.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,23 @@ jobs:
6565
CODE_REPO: 'adk-python'
6666
INTERACTIVE: 0
6767
PYTHONPATH: contributing/samples/adk_documentation
68-
run: >-
69-
python -m adk_release_analyzer.main
70-
${{ github.event.inputs.resume == 'true' && '--resume' || '' }}
71-
${{ github.event.inputs.start_tag && format('--start-tag {0}', github.event.inputs.start_tag) || '' }}
72-
${{ github.event.inputs.end_tag && format('--end-tag {0}', github.event.inputs.end_tag) || '' }}
68+
ANALYZER_RESUME: ${{ github.event.inputs.resume }}
69+
ANALYZER_START_TAG: ${{ github.event.inputs.start_tag }}
70+
ANALYZER_END_TAG: ${{ github.event.inputs.end_tag }}
71+
shell: bash
72+
run: |
73+
set -euo pipefail
74+
args=()
75+
if [[ "${ANALYZER_RESUME:-false}" == "true" ]]; then
76+
args+=(--resume)
77+
fi
78+
if [[ -n "${ANALYZER_START_TAG:-}" ]]; then
79+
args+=(--start-tag "$ANALYZER_START_TAG")
80+
fi
81+
if [[ -n "${ANALYZER_END_TAG:-}" ]]; then
82+
args+=(--end-tag "$ANALYZER_END_TAG")
83+
fi
84+
python -m adk_release_analyzer.main "${args[@]}"
7385
7486
- name: Save session DB to cache
7587
if: always()

0 commit comments

Comments
 (0)