-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from miguelaferreira/address-linting-warnings
Address linting warnings
- Loading branch information
Showing
2 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
echo ${KUBE_CONFIG_DATA} | base64 -d > kubeconfig | ||
echo "${KUBE_CONFIG_DATA}" | base64 -d > kubeconfig | ||
export KUBECONFIG="${PWD}/kubeconfig" | ||
chmod 600 ${PWD}/kubeconfig | ||
chmod 600 "${PWD}/kubeconfig" | ||
|
||
if [[ -n "${INPUT_PLUGINS// /}" ]] | ||
then | ||
plugins=$(echo $INPUT_PLUGINS | tr ",") | ||
plugins="$(echo "${INPUT_PLUGINS}" | tr ",")" | ||
|
||
for plugin in $plugins | ||
for plugin in ${plugins} | ||
do | ||
echo "installing helm plugin: [$plugin]" | ||
helm plugin install $plugin | ||
echo "installing helm plugin: [${plugin}]" | ||
helm plugin install "${plugin}" | ||
done | ||
fi | ||
|
||
echo "running entrypoint command(s)" | ||
|
||
response=$(sh -c " $INPUT_COMMAND") | ||
response=$(bash -c "${INPUT_COMMAND}") | ||
|
||
echo "response=$response" >> $GITHUB_OUTPUT | ||
{ | ||
echo "response<<EOF"; | ||
echo "$response"; | ||
echo "EOF"; | ||
} >> "${GITHUB_OUTPUT}" |