Skip to content

Commit

Permalink
fix: get version number from commit message (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk authored Nov 17, 2023
1 parent b8e8903 commit 8e3b6d1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/update_release_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,11 @@ jobs:
- name: Set release version
id: set_release_version
env:
MAJOR: "1"
MINOR: "2"
PATCH: "3"
HEAD_COMMIT_TITLE: ${{ github.event.head_commit.message }}
run: |
echo "$MAJOR $MINOR $PATCH"
echo The Title of your PR is ${{ github.event.pull_request.title }}
file=$(find . -name "version.py")
sed -i "s/^VERSION .*$/VERSION = \"$MAJOR.$MINOR.$PATCH\"/" $file
version_number=${HEAD_COMMIT_TITLE##* }
sed -i "s/^VERSION .*$/VERSION = \"$version_number\"/" $file
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: set release version

0 comments on commit 8e3b6d1

Please sign in to comment.