File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,21 +28,21 @@ jobs:
2828 run : >-
2929 poetry version minor
3030
31+ - name : Get version
32+ id : get_version
33+ run : >-
34+ poetry version --short | sed 's/^/::set-output name=version::/'
35+
3136 - name : Commit updated version.
3237 id : commit_updated
3338 run : |
3439 git config --global user.name 'github-actions'
3540 git config --global user.email '[email protected] ' 3641 git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
3742 git add pyproject.toml
38- git commit -m "bump version" && git push || echo "No changes to commit"
43+ git commit -m "bump version to ${{ steps.get_version.outputs.version }} " && git push || echo "No changes to commit"
3944 git log -n 1 --pretty=format:"%H" | tail -n 1 | awk '{print "::set-output name=sha::"$0}'
4045
41- - name : Get version
42- id : get_version
43- run : >-
44- poetry version --short | sed 's/^/::set-output name=version::/'
45-
4646 - name : Create GitHub release
4747 uses : actions/create-release@v1
4848 id : create_release
You can’t perform that action at this time.
0 commit comments