File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 - ' charts/**'
1010 workflow_dispatch :
1111 inputs :
12- chart :
13- description : " Chart to release (leave empty for automatic detection) "
12+ charts :
13+ description : " Chart(s) to release, space-separated (eg: geokoder trakkar). Leave empty for automatic detection. "
1414 required : false
1515 default : " "
1616 dev :
5050 GITHUB_EVENT_NAME : ${{ github.event_name }}
5151 GITHUB_EVENT_BEFORE : ${{ github.event.before }}
5252 GITHUB_EVENT_AFTER : ${{ github.event.after }}
53- INPUT_CHART : ${{ github.event.inputs.chart }}
53+ INPUT_CHART : ${{ github.event.inputs.charts }}
5454 run : bash ./scripts/detect_charts.sh
5555
5656 # Release the detected charts
Original file line number Diff line number Diff line change @@ -75,19 +75,21 @@ _add_chart() {
7575
7676begin_group " Detect charts" >&2
7777
78- # 1: chart provided manually
78+ # 1: chart(s) provided manually with space-separated list supported
7979if [[ -n " ${INPUT_CHART} " ]]; then
80- echo " -> Chart provided manually: ${INPUT_CHART} " >&2
81- _add_chart " ${INPUT_CHART} "
80+ echo " -> Chart(s) provided manually: ${INPUT_CHART} " >&2
81+ for CHART in ${INPUT_CHART} ; do
82+ _add_chart " $CHART "
83+ done
8284
83- # 2: no diff range -> include all charts
85+ # 2: no diff range -> include all charts
8486elif [[ -z " ${DIFF_RANGE} " ]]; then
8587 echo " -> No diff range: including all non-library charts" >&2
8688 for CHART_DIR in " ${REPO_ROOT} " /charts/* /; do
8789 _add_chart " $( basename " ${CHART_DIR} " ) "
8890 done
8991
90- # 3: normal push -> detect from git diff
92+ # 3: normal push -> detect from git diff
9193else
9294 CHANGED_FILES=$( git diff --name-only " ${DIFF_RANGE} " \
9395 -- ' charts/' 2> /dev/null || true)
You can’t perform that action at this time.
0 commit comments