We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cce2316 commit 9f0632aCopy full SHA for 9f0632a
.github/workflows/python-publish.yml
@@ -30,12 +30,11 @@ jobs:
30
twine upload ./dist/*.tar.gz --skip-existing
31
- name : Get Version
32
id : get_version
33
- run : |
34
- $message = @(git log -1 --oneline --format=%s)
35
- $lines = $message.Split(' ')
36
- $version = $lines[1]
37
-
38
- Write-Output "::set-output name=version::$version"
+ shell: bash
+ run : |
+ commit_message=$(git log -1 --pretty=%s)
+ version=$(echo "$commit_message" | awk '{print $2}')
+ echo "version=$version" >> $GITHUB_OUTPUT
39
- name: Create Release
40
id: create_release
41
uses: actions/create-release@v1
0 commit comments