Update values.yaml #139
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
--- | |
name: Update chart version | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
permissions: write-all | |
jobs: | |
increase-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 | |
- name: Checkout PR | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh pr checkout ${{ github.event.pull_request.number }} | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '>=1.17.0' | |
- name: Get changed files in the charts folder | |
id: changed-files-specific | |
uses: tj-actions/changed-files@v40 | |
with: | |
files: charts/** | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Run update for any chart concerned by the commit | |
if: steps.changed-files-specific.outputs.any_changed == 'true' | |
run: | | |
cd hack/ && go run update_after_renovate.go ${{ steps.changed-files-specific.outputs.all_changed_files }} | |
- name: Commit modifications | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: steps.changed-files-specific.outputs.any_changed == 'true' | |
run: | | |
git commit -a -m "[AUTO] Update chart version" | |
git push |