diff --git a/.github/workflows/platform-docker-build-test-publish.yml b/.github/workflows/platform-docker-build-test-publish.yml index bcbdb662b617..5dce0364cc68 100644 --- a/.github/workflows/platform-docker-build-test-publish.yml +++ b/.github/workflows/platform-docker-build-test-publish.yml @@ -237,16 +237,15 @@ jobs: - name: Set up release tag variables id: version-trim run: | - TAG=${{github.ref_name}} + TAG=${{ github.event.release.tag_name }} echo "version=${TAG#v}" >> $GITHUB_OUTPUT - - name: Run YAML to Github Output Action - id: yaml-output - uses: christian-ci/action-yaml-github-output@v2 + - uses: actions-tools/yaml-outputs@v2 + id: chart-yaml with: - file_path: './chart/charts/flagsmith/Chart.yaml' + file-path: ./chart/charts/flagsmith/Chart.yaml - - name: Update flagsmith-charts values.yaml with latest docker version + - name: Open a PR bumping Flagsmith to ${{ github.event.release.tag_name }} uses: fjogeleit/yaml-update-action@main with: token: ${{ secrets.FLAGSMITH_CHARTS_GITHUB_TOKEN }} @@ -254,11 +253,12 @@ jobs: workDir: chart masterBranchName: 'main' targetBranch: 'main' - branch: docker-image-version-bump-${{ steps.version-trim.outputs.version }} + branch: deps/bump-flagsmith-${{ steps.version-trim.outputs.version }} commitChange: true createPR: true - message: 'Flagsmith docker image version bump' - description: 'Automated PR generated by a release event in https://github.com/Flagsmith/flagsmith' + message: 'deps: bump Flagsmith from ${{ steps.chart-yaml.outputs.appVersion }} to ${{ steps.version-trim.outputs.version }}' + title: '{{message}}' + description: 'Automated PR generated by Flagsmith release [${{ github.event.release.tag_name }}](${{ github.event.release.url }}).' valueFile: 'charts/flagsmith/Chart.yaml' changes: | {