@@ -11,25 +11,26 @@ jobs:
1111 cache : pip
1212 python-version : 3.x
1313 - name : Install dependencies
14- run : pip install packaging
14+ run : pip install https://github.com/praw-dev/praw-release/archive/main.zip
1515 - name : Prepare Git Variables
1616 run : |
1717 git config --global author.email ${{ github.actor }}@users.noreply.github.com
1818 git config --global author.name ${{ github.actor }}
1919 git config --global committer.email noreply@github.com
2020 git config --global committer.name GitHub
21- - name : Set desired version
21+ - name : Normalize version and update in code
2222 run : |
23- tools/set_version.py ${{ github.event.inputs.version }} > tmp_version
23+ praw-release bump ${{ github.event.repository.name }} ${{ github.event.inputs.version }} > tmp_version
2424 echo "version=$(cat tmp_version)" >> $GITHUB_ENV
25- - name : Commit desired version
25+ rm tmp_version
26+ - name : Commit changes with desired version
2627 run : git commit -am "Bump to v${{ env.version }}"
27- - name : Set development version
28+ - name : Update code with next development version
2829 run : |
29- tools/set_version.py Unreleased > tmp_version
30+ praw-release bump ${{ github.event.repository.name }} unreleased > tmp_version
3031 echo "dev_version=$(cat tmp_version)" >> $GITHUB_ENV
3132 rm tmp_version
32- - name : Commit development version
33+ - name : Commit changes with development version
3334 run : git commit -am "Set development version v${{ env.dev_version }}"
3435 - name : Create Pull Request
3536 uses : peter-evans/create-pull-request@v6
0 commit comments