-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (41 loc) · 1.36 KB
/
increase_version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
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