-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (52 loc) · 1.66 KB
/
create-release-pr.yml
File metadata and controls
58 lines (52 loc) · 1.66 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
# Create Release PR workflow using releaseo
#
# This workflow creates a release PR that bumps the version in:
# - VERSION file (single source of truth)
# - helm/Chart.yaml (version and appVersion)
# - helm/values.yaml (image.tag with v prefix)
#
name: Create Release PR
on:
workflow_dispatch:
inputs:
bump_type:
description: "Version bump type"
required: true
type: choice
options:
- patch
- minor
- major
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Create Release PR
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Create Release PR
id: release
uses: stacklok/releaseo@80e8d8131d41cf8763254d02360f2c5ce9b7c0df # v0.0.4
with:
releaseo_version: v0.0.3
bump_type: ${{ inputs.bump_type }}
token: ${{ secrets.RELEASE_TOKEN }}
version_files: |
- file: helm/Chart.yaml
path: version
- file: helm/Chart.yaml
path: appVersion
prefix: v
- file: helm/values.yaml
path: image.cloudUiImage
prefix: v
- name: Summary
run: |
echo "## Release PR Created" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **Version**: ${{ steps.release.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "- **PR**: #${{ steps.release.outputs.pr_number }}" >> $GITHUB_STEP_SUMMARY
echo "- **URL**: ${{ steps.release.outputs.pr_url }}" >> $GITHUB_STEP_SUMMARY