Skip to content

Commit

Permalink
Update tagged_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna-Shalamitskaya-EPAM authored Feb 19, 2024
1 parent 92b99d0 commit 195d5bb
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/tagged_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
commit_author: Author <[email protected]>

- uses: actions/checkout@v4
with:
ref: ${{ env.release_branch_name }}

- name: Create tag
run: |
git config user.name github-actions
git config user.email [email protected]
# ~ 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
Expand Down

0 comments on commit 195d5bb

Please sign in to comment.