Skip to content

Commit a14eb23

Browse files
authored
chore: fix update chart yaml (#3185)
1 parent 73e866c commit a14eb23

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/platform-docker-publish-image.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
- name: Cloning repo
1919
uses: actions/checkout@v3
2020

21+
- name: Checkout Target Charts Repository to update yaml
22+
uses: actions/checkout@v3
23+
with:
24+
repository: flagsmith/flagsmith-charts
25+
path: chart
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
2128
- name: Docker metadata
2229
id: meta
2330
uses: docker/metadata-action@v4
@@ -57,6 +64,18 @@ jobs:
5764
TAG=${{github.ref_name}}
5865
echo "version_trim=${TAG#v}" >> $GITHUB_ENV
5966
67+
- name: Run YAML to Github Output Action
68+
id: yaml-output
69+
uses: christian-ci/action-yaml-github-output@v2
70+
with:
71+
file_path: './chart/charts/flagsmith/Chart.yaml'
72+
73+
- uses: us-ignite/action-bump-semver@main
74+
id: bump-semver
75+
with:
76+
current_version: ${{ steps.yaml-output.outputs.version }}
77+
level: minor
78+
6079
- name: Update flagsmith-charts values.yaml with latest docker version
6180
uses: fjogeleit/yaml-update-action@main
6281
with:
@@ -71,5 +90,8 @@ jobs:
7190
message: 'Flagsmith docker image version bump'
7291
description: 'Automated PR generated by a release event in https://github.com/Flagsmith/flagsmith'
7392
valueFile: 'charts/flagsmith/Chart.yaml'
74-
value: ${{ env.version_trim }}
75-
propertyPath: 'appVersion'
93+
changes: |
94+
{
95+
"appVersion": "${{ env.version_trim }}",
96+
"version": "${{ steps.bump-semver.outputs.new_version }}"
97+
}

0 commit comments

Comments
 (0)