diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5aec82538..00cfa0b8f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -315,14 +315,22 @@ jobs: with: persist-credentials: false fetch-depth: 0 # otherwise, you will failed to push refs to dest repo + - id: semver + uses: actions/github-script@0.9.0 + env: + REF_NAME: ${{ github.ref_name }} + with: + script: | + core.setOutput('formatted', process.env.REF_NAME.replace(/^v/, "")) - name: update context run: | - sed -i 's/version: .* # VERSION/version: ${{github.ref_name}} # VERSION/' plural/manifests/context.yaml + sed -i 's/version: .* # VERSION/version: ${{steps.semver.outputs.formatted}} # VERSION/' plural/manifests/context.yaml - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: title: Release ${{github.ref_name}} body: Automated Pull Request to release ${{github.ref_name}} commit-message: Updated chart to release ${{github.ref_name}} + branch: release-${{github.ref_name}} labels: release base: master diff --git a/plural/manifests/context.yaml b/plural/manifests/context.yaml index 9312d5c6d..4bf313114 100644 --- a/plural/manifests/context.yaml +++ b/plural/manifests/context.yaml @@ -7,4 +7,4 @@ spec: name: plural namespace: infra context: - version: 0.11.9 # VERSION \ No newline at end of file + version: 0.11.10 # VERSION \ No newline at end of file