diff --git a/.github/workflows/platform-docker-publish-image.yml b/.github/workflows/platform-docker-publish-image.yml index bc6a5642766b..d99e1c5bbe08 100644 --- a/.github/workflows/platform-docker-publish-image.yml +++ b/.github/workflows/platform-docker-publish-image.yml @@ -18,6 +18,13 @@ jobs: - name: Cloning repo uses: actions/checkout@v3 + - name: Checkout Target Charts Repository to update yaml + uses: actions/checkout@v3 + with: + repository: flagsmith/flagsmith-charts + path: chart + token: ${{ secrets.GITHUB_TOKEN }} + - name: Docker metadata id: meta uses: docker/metadata-action@v4 @@ -57,6 +64,18 @@ jobs: TAG=${{github.ref_name}} echo "version_trim=${TAG#v}" >> $GITHUB_ENV + - name: Run YAML to Github Output Action + id: yaml-output + uses: christian-ci/action-yaml-github-output@v2 + with: + file_path: './chart/charts/flagsmith/Chart.yaml' + + - uses: us-ignite/action-bump-semver@main + id: bump-semver + with: + current_version: ${{ steps.yaml-output.outputs.version }} + level: minor + - name: Update flagsmith-charts values.yaml with latest docker version uses: fjogeleit/yaml-update-action@main with: @@ -71,5 +90,8 @@ jobs: message: 'Flagsmith docker image version bump' description: 'Automated PR generated by a release event in https://github.com/Flagsmith/flagsmith' valueFile: 'charts/flagsmith/Chart.yaml' - value: ${{ env.version_trim }} - propertyPath: 'appVersion' + changes: | + { + "appVersion": "${{ env.version_trim }}", + "version": "${{ steps.bump-semver.outputs.new_version }}" + }