File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ RUN wget https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -O - | tar
2020RUN chmod +x /usr/local/bin/helm
2121
2222COPY entrypoint.sh /entrypoint.sh
23- ENTRYPOINT ["/entrypoint.sh" ]:
23+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33set -e
44
5- echo ${KUBE_CONFIG_DATA} | base64 -d > kubeconfig
5+ echo " ${KUBE_CONFIG_DATA} " | base64 -d > kubeconfig
66export KUBECONFIG=" ${PWD} /kubeconfig"
7- chmod 600 ${PWD} /kubeconfig
7+ chmod 600 " ${PWD} /kubeconfig"
88
99if [[ -n " ${INPUT_PLUGINS// / } " ]]
1010then
11- plugins=$( echo $ INPUT_PLUGINS | tr " ," )
11+ plugins=" $( echo " ${ INPUT_PLUGINS} " | tr " ," ) "
1212
13- for plugin in $plugins
13+ for plugin in ${ plugins}
1414 do
15- echo " installing helm plugin: [$plugin ]"
16- helm plugin install $ plugin
15+ echo " installing helm plugin: [${ plugin} ]"
16+ helm plugin install " ${ plugin} "
1717 done
1818fi
1919
2020echo " running entrypoint command(s)"
2121
22- response=$( sh -c " $ INPUT_COMMAND" )
22+ response=$( bash -c " ${ INPUT_COMMAND} " )
2323
24- echo " response=$response " >> $GITHUB_OUTPUT
24+ {
25+ echo " response<<EOF" ;
26+ echo " $response " ;
27+ echo " EOF" ;
28+ } >> " ${GITHUB_OUTPUT} "
You can’t perform that action at this time.
0 commit comments