Skip to content

Commit

Permalink
fix/change_helm_docs_action (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
TalShafir authored Feb 12, 2024
1 parent 7f6c3ab commit 50afb1d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/bump-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/checkout@v3
with:
repository: spotinst/charts
- uses: gabe565/[email protected]

- name: Clean version
id: clean-version
Expand All @@ -37,19 +38,16 @@ jobs:
yq -i '.appVersion = "${{ steps.clean-version.outputs.version }}"' ./charts/${{ inputs.chart-name }}/Chart.yaml
yq -i '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' ./charts/${{ inputs.chart-name }}/Chart.yaml
- name: Update helm docs
run: |
helm-docs --chart-to-generate charts/${{ inputs.chart-name }}
- name: Generate version bump commit
run: |
git config user.name ${{ github.actor }}
git config user.email '${{ github.actor }}@users.noreply.github.com'
git commit -a -m "bump ${{ inputs.chart-name }} app version to ${{ steps.clean-version.outputs.version }}"
- name: Update helm docs
uses: losisin/[email protected]
with:
git-push: true
git-push-user-email: ${{ github.actor }}@users.noreply.github.com
git-push-user-name: ${{ github.actor }}

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
Expand Down

0 comments on commit 50afb1d

Please sign in to comment.