Skip to content

Commit eb96318

Browse files
Back to grep. It was quotation problem - both single and double are acceptable now.
1 parent e4a4016 commit eb96318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/Release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Get version from file
3131
id: check-change
3232
run: |
33-
version=$(awk -F"'" '/^__version__ = /{print $2; exit}' src/PyMca5/__init__.py)
33+
version=$(grep -Po '^__version__ = ["'\'']\K[^"'\'']+' src/PyMca5/__init__.py)
3434
echo "Found version: $version"
3535
echo "version=$version" >> $GITHUB_OUTPUT
3636

0 commit comments

Comments
 (0)