Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 committed Jul 31, 2023
1 parent 956269c commit 3e81242
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update_dev_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:
- name: update version
env:
GH_TOKEN: ${{ github.token }}
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
PR_NUMBER: ${{ github.event.pull_request.number}}
run: |
sed -i "s/__version__\s*=\s*\"\([0-9]\+\.[0-9]\+\.[0-9]\+\).dev[0-9]\+\"/__version__ = \"\1$NEW_VERSION\"/" __init__.py
git checkout ${{ github.pull_request.head.ref }}
git checkout $BRANCH_NAME
git add __init__.py
git commit -m "update version"
git push origin ${{ github.pull_request.head.ref }}
gh pr comment ${{ github.pull_request.number }} -b "I've updated the version for you. Feel free to merge now!"
git push origin $BRANCH_NAME
gh pr comment $PR_NUMBER -b "I've updated the version for you. Feel free to merge now!"

0 comments on commit 3e81242

Please sign in to comment.