Skip to content

Commit

Permalink
feat: pass string values from api ✨ (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
meysam81 authored Jan 11, 2023
1 parent 8fb09ef commit 41fb8d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
release-name: ${{ github.event.repository.name }}
update-dependencies: "1" # helm dep update
values: image.tag=${{ github.sha }} # comma separated key=value pairs
values-string: key1=value1,key2=value2 # comma separated key=value pairs
values-file: ${{ secrets.HELM_VALUES }} # JSON/YAML encoded string
values-filepath: /tmp/values.yml
wait: "1"
Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ inputs:
default: ""
description: A relative/absolute path to a file containing the YAML/JSON values
required: false
values-string:
default: ""
description: A comma separated list of values e.g. "key1=value1,key2=value2"
required: false
wait:
default: "1"
description: Whether or not to pass `--wait` to Helm
Expand Down Expand Up @@ -100,8 +104,8 @@ runs:
if: inputs.kubeconfig != '' || inputs.values-file != ''
name: Generate kubeconfig & values random filepath
run: |
echo "::set-output name=KUBECONFIG_FILEPATH::${{ github.run_id }}-${{ github.run_attempt }}-${RANDOM}-kubeconfig"
echo "::set-output name=VALUES_FILEPATH::${{ github.run_id }}-${{ github.run_attempt }}-${RANDOM}-values"
echo "KUBECONFIG_FILEPATH=${{ github.run_id }}-${{ github.run_attempt }}-${RANDOM}-kubeconfig" >> $GITHUB_OUTPUT
echo "VALUES_FILEPATH=${{ github.run_id }}-${{ github.run_attempt }}-${RANDOM}-values" >> $GITHUB_OUTPUT
shell: bash
- if: inputs.values-file != ''
name: Prepare values file
Expand Down

0 comments on commit 41fb8d7

Please sign in to comment.