File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,18 @@ jobs:
3030
3131 - name : Fetch local package version
3232 run : |
33- packageLocalVersion=$(python -c 'from version import version; print(version); ')
33+ packageLocalVersion=$(python -c 'from version import version; print(version)')
3434 echo "localVersion=$packageLocalVersion" >> $GITHUB_ENV
3535
3636 - name : Fetch remote package version
3737 run : |
38- packageRemoteVersion=$(python -c "exec(\"import pkg_resources\\n try: print(pkg_resources.get_distribution('osw-incline').version)\\n except pkg_resources.DistributionNotFound: print('0.0.0')\\n finally: print('Done checking version')\")")
38+ packageRemoteVersion=$(python -c "
39+ import pkg_resources
40+ try:
41+ print(pkg_resources.get_distribution('osw-incline').version)
42+ except pkg_resources.DistributionNotFound:
43+ print('0.0.0')
44+ ")
3945 echo "remoteVersion=$packageRemoteVersion" >> $GITHUB_ENV
4046
4147 - name : Printing local and remote versions
4955 exit 1
5056 fi
5157
52-
5358 - name : Setup python wheel
5459 run : pip install wheel
5560
5964 - name : Publish package
6065 uses : pypa/gh-action-pypi-publish@release/v1
6166 with :
62- password : ${{ secrets.PYPI_API_TOKEN }}
63-
67+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments