Skip to content

Commit

Permalink
fix: input names
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleet committed Nov 19, 2022
1 parent 1bd4b2d commit 8f7010a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: github-release
on:
workflow_call:
inputs:
updateImageTags:
container:
type: boolean
required: false
updateChartVersion:
helm:
type: boolean
required: false
secrets:
Expand Down Expand Up @@ -45,19 +45,19 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Update version in helm values
if: inputs.updateImageTags
if: inputs.container
uses: mikefarah/yq@master
with:
cmd: yq -i '.image.tag = "${{ steps.version.outputs.version_tag }}"' helm/values.yaml

- name: Update version in helm chart
if: inputs.updateChartVersion
if: inputs.helm
uses: mikefarah/yq@master
with:
cmd: yq -i '.version = "${{ steps.version.outputs.version_tag }}"' helm/Chart.yaml

- name: Commit changes
if: inputs.updateChartVersion || inputs.updateImageTags
if: inputs.helm || inputs.container
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
Expand Down

0 comments on commit 8f7010a

Please sign in to comment.