From 195d5bb9bc8779dedae40cfab04c0e22c6bd4b16 Mon Sep 17 00:00:00 2001 From: "Hanna Shalamitskaya (EPAM)" <131383977+Hanna-Shalamitskaya-EPAM@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:00:50 +0500 Subject: [PATCH] Update tagged_release.yml --- .github/workflows/tagged_release.yml | 32 ++++++++++++---------------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tagged_release.yml b/.github/workflows/tagged_release.yml index 1eb4a72..a9891ea 100644 --- a/.github/workflows/tagged_release.yml +++ b/.github/workflows/tagged_release.yml @@ -124,30 +124,26 @@ jobs: release_branch_name=${release_version%.*}.x echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV - - uses: actions/checkout@v4 - with: - ref: ${{ env.release_branch_name }} - - name: Set antora version run: | git status yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/python-sdk-guide/antora.yml - - name: Update version + - name: Commit version changes and push to upstream repository + uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5 + with: + branch: ${{ env.release_branch_name }} + commit_user_name: github-actions + commit_user_email: github-actions@github.com + commit_author: Author + + - uses: actions/checkout@v4 + with: + ref: ${{ env.release_branch_name }} + + - name: Create tag run: | - git config user.name github-actions - git config user.email github-actions@github.com - # ~ pwd - # yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/python-sdk-guide/antora.yml - echo 'update poetry version' - cd core/esmf-aspect-meta-model-python - poetry version ${{ github.event.inputs.release_version }} - echo "EsmfVersion=${{ github.event.inputs.release_version }}" >> $GITHUB_ENV - echo "::set-output name=EsmfVersion::${{ github.event.inputs.release_version }}" - git add ../../documentation/python-sdk-guide/antora.yml - git add pyproject.toml - git commit -m "Release version ${{steps.ESMF_version.outputs.EsmfVersion}}." - git push + git status tag_version=v${{ github.event.inputs.release_version }} git tag $tag_version git push origin $tag_version