Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot committed Apr 10, 2023
1 parent d3cd76a commit d187e77
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,19 @@ runs:
# Allow pipefail, since we could be catching errors
set +o pipefail
export VALUES="${{inputs.values}}"
#Build --set string of values
for value in $VALUES
for value in "${{inputs.values}}"
do
export SETVALUES+="--set $value "
echo "$value"
export VALUES+="--set $value "
done
if [ helm upgrade ${{ inputs.release }} ${{ inputs.release }}/${{ inputs.chart }} $SETVALUES ] && [ helm upgrade ${{ inputs.release }} ${{ inputs.repository}}/${{ inputs.chart }} $SETVALUES]
echo $VALUES
if [ (helm upgrade ${{ inputs.release }} ${{ inputs.release }}/${{ inputs.chart }} $VALUES) && (helm upgrade ${{ inputs.release }} ${{ inputs.repository}}/${{ inputs.chart }} $VALUES)]
then
if [ ! helm install ${{ inputs.release }} ${{ inputs.release }}/${{ inputs.chart }} $SETVALUES ]
if [ ! helm install ${{ inputs.release }} ${{ inputs.release }}/${{ inputs.chart }} $VALUES ]
then
helm install ${{ inputs.release }} ${{ inputs.repository }}/${{ inputs.chart }} $SETVALUES
helm install ${{ inputs.release }} ${{ inputs.repository }}/${{ inputs.chart }} $VALUES
fi
fi

0 comments on commit d187e77

Please sign in to comment.