We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e82e9da commit 994c142Copy full SHA for 994c142
1 file changed
.github/workflows/release.yml
@@ -22,7 +22,7 @@ jobs:
22
23
- name: Get Local Version
24
id: get-local-version
25
- run: echo "version=$(python -c 'import naver._version; print(naver._version.__version__)')" >> $GITHUB_OUTPUT
+ run: echo "version=$(grep -oP '__version__ = "\K[^"]+' naver/_version.py)" >> $GITHUB_OUTPUT
26
27
- name: Get Remote Version
28
id: get-remote-version
@@ -60,7 +60,7 @@ jobs:
60
61
- name: Get the version
62
run: |
63
- VER=$(python -c "import naver._version; print(naver._version.__version__)")
+ VER=$(grep -oP '__version__ = "\K[^"]+' naver/_version.py)
64
echo "VERSION=$VER" >> $GITHUB_ENV
65
66
- name: Create GitHub Release
0 commit comments