-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (53 loc) · 1.74 KB
/
bump-chart-version.yml
File metadata and controls
59 lines (53 loc) · 1.74 KB
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
name: bump-chart-version
on:
workflow_dispatch:
inputs:
chart_version:
description: "Chart version to set (does not touch appVersion)"
required: true
type: string
ref:
description: "Git ref to bump (default: main)"
required: false
type: string
permissions:
contents: write
pull-requests: write
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ inputs.ref || 'main' }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.14'
- name: Install deps
run: |
python -m pip install --upgrade pip
python -m pip install "packaging==25.0" "ruamel.yaml==0.18.6"
- name: Bump chart version only
env:
CHART_VERSION: ${{ inputs.chart_version }}
run: |
if [ -z "${CHART_VERSION}" ]; then
echo "chart_version input is required" >&2
exit 1
fi
python tools/bump_chart_versions.py --mode chart-only --chart-version "$CHART_VERSION"
- name: Open PR for chart version bump
uses: peter-evans/create-pull-request@v6
with:
base: main
branch: chore/chart-bump-${{ inputs.chart_version }}
title: "chore(release): bump chart version to ${{ inputs.chart_version }}"
body: |
Bump Chart.yaml version to ${{ inputs.chart_version }} (appVersion unchanged).
commit-message: "chore(release): bump chart version to ${{ inputs.chart_version }}"
add-paths: |
infrastructure/**/Chart.yaml
token: ${{ secrets.PR_AUTOMATION_TOKEN }}
labels: chart-bump