Skip to content

Commit

Permalink
build: debugged CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Oct 15, 2021
1 parent 52831c9 commit e15482e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ jobs:
if [[ "${TAG}" =~ ^refs/tags/ ]]; then
version="${TAG/refs\/tags\//}"
else
versionFileDir=$(find -name _version.py | rev | cut -d / -f 2- | rev)
version=$(PYTHONPATH=$versionFileDir python -c "import _version; print(_version.__version__)")
version=$(python -c "import glob; import importlib.util; version_filename = glob.glob('**/_version.py', recursive=True)[0]; spec = importlib.util.spec_from_file_location('module.name', version_filename); module = importlib.util.module_from_spec(spec); spec.loader.exec_module(module); print(module.__version__)")
fi
echo "::set-output name=version::$version"
Expand Down

0 comments on commit e15482e

Please sign in to comment.