-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (54 loc) · 1.81 KB
/
chart-bumper.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Upgrade helm charts minor versions
on:
workflow_run:
workflows: ["Release Charts"]
types: [completed]
jobs:
upgrade-helm-charts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.7.2
- uses: actions/setup-python@v5
with:
python-version: 3.13.1
- name: install pyaml
run: |
pip3 install pyaml==21.10.1
- name: install updateCli
run: |
curl -sL -o /tmp/updatecli_amd64.deb https://github.com/updatecli/updatecli/releases/download/v0.36.0/updatecli_amd64.deb
sudo apt install /tmp/updatecli_amd64.deb
- name: Set up chart-testing
uses: helm/[email protected]
with:
version: v3.7.0
- name: Run chart bumper script & update docs
run: |
python scripts/chart_bumper.py
rm -f manifest.yaml
rm -f manifest_gdi_dependant.yaml
bash scripts/helm-docs.sh
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config .github/config/ct.yaml | tr '\n' ' ')
if [[ -n "$changed" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
if: steps.list-changed.outputs.changed == 'true'
with:
commit-message: "feat: upgrade helm charts"
title: "chore: upgrade helm charts minor versions"
body: |
Automatic upgrade of helm chart minor versions using https://github.com/updatecli/updatecli
branch: upgrade-helm-charts-minors
base: main