Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9de4f4

Browse files
committed
Get version tag properly
1 parent ae5086c commit d9de4f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- uses: actions/checkout@v2
1818
- name: Validate version
1919
run: |
20-
version=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') | sed -e 's/^v//'
20+
version=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,' | sed -e 's/^v//')
2121
echo Version=$version
22-
[ $version == $( cat gitgud/version.txt ) ]
22+
[ "$version" == "$( cat gitgud/version.txt )" ]
2323
2424
- name: Set up Python
2525
uses: actions/setup-python@v1

0 commit comments

Comments
 (0)