File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments