-
Notifications
You must be signed in to change notification settings - Fork 55
50 lines (42 loc) · 1.44 KB
/
Copy pathupdate-app-version.yml
File metadata and controls
50 lines (42 loc) · 1.44 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
name: Update App Version
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to update appVersion to'
required: true
type: string
permissions:
contents: write
pull-requests: write
jobs:
update-app-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update appVersion in Chart.yaml
run: |
sed -i "s/^appVersion: .*/appVersion: ${{ github.event.inputs.tag }}/" charts/hdx-oss-v2/Chart.yaml
- name: Create changeset
run: |
mkdir -p .changeset
cat > .changeset/update-app-version-${{ github.event.inputs.tag }}.md << 'EOF'
---
"helm-charts": patch
---
chore: update appVersion to ${{ github.event.inputs.tag }}
EOF
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: Update appVersion to ${{ github.event.inputs.tag }}"
title: "Update appVersion to ${{ github.event.inputs.tag }}"
body: |
This PR updates the appVersion in Chart.yaml to `${{ github.event.inputs.tag }}`.
- Updated `charts/hdx-oss-v2/Chart.yaml`
branch: update-app-version-${{ github.event.inputs.tag }}
delete-branch: true