Skip to content

Commit 068482a

Browse files
authored
ci: gha to bump Chart appVersion (#38)
1 parent d21aec7 commit 068482a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update App Version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Tag to update appVersion to'
8+
required: true
9+
type: string
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
jobs:
16+
update-app-version:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Update appVersion in Chart.yaml
25+
run: |
26+
sed -i "s/^appVersion: .*/appVersion: ${{ github.event.inputs.tag }}/" charts/hdx-oss-v2/Chart.yaml
27+
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v5
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
commit-message: "chore: Update appVersion to ${{ github.event.inputs.tag }}"
33+
title: "Update appVersion to ${{ github.event.inputs.tag }}"
34+
body: |
35+
This PR updates the appVersion in Chart.yaml to `${{ github.event.inputs.tag }}`.
36+
37+
- Updated `charts/hdx-oss-v2/Chart.yaml`
38+
branch: update-app-version-${{ github.event.inputs.tag }}
39+
delete-branch: true

0 commit comments

Comments
 (0)