From 056d8b7cb1d778fac15959324803215f441d4fa6 Mon Sep 17 00:00:00 2001 From: spencer-tb Date: Sat, 17 Feb 2024 09:58:56 +0700 Subject: [PATCH] update. --- .github/workflows/release.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ebfd11a423..9a36d15e2b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,13 +20,13 @@ jobs: - name: Create New Branch and Update version in setup.cfg run: | - NEW_VERSION=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//') - NEW_BRANCH="release-${{ github.event.release.tag_name }}" - echo "NEW_BRANCH=$NEW_BRANCH" >> $GITHUB_ENV # Set NEW_BRANCH for the job + NEW_VERSION=${{ github.event.release.tag_name }} # Keep the 'v' prefix + NEW_BRANCH="release-${NEW_VERSION}" + echo "NEW_BRANCH=$NEW_BRANCH" >> $GITHUB_ENV git checkout -b $NEW_BRANCH - sed -i "s/^version = .*/version = $NEW_VERSION/" setup.cfg + sed -i "s/^version = .*/version = $NEW_VERSION/" setup.cfg # Use $NEW_VERSION directly git add setup.cfg - git commit -m "Release EEST `${{ github.event.release.tag_name }}`" + git commit -m "Release EEST $NEW_VERSION" git push origin $NEW_BRANCH - name: Create Pull Request