File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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()
You can’t perform that action at this time.
0 commit comments