Skip to content

Commit 0199423

Browse files
authored
fix: don't create package/lib if no globalConfig.json file (#76)
* fix: don't create package/lib if no globalConfig.json file There is no need to create package/lib folder and put empty requirements.txt file there if we do not have globalConfig.json file present in the repository, which is the indicator of the add-on which needs Python dependencies to be installed under package/lib folder. * chore: typo
1 parent 4e5165e commit 0199423

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,14 @@ jobs:
215215
run: |
216216
if [ -f "poetry.lock" ]
217217
then
218-
echo " potery.lock found "
218+
echo " poetry.lock found "
219219
sudo pip3 install poetry
220-
mkdir -p package/lib || true
221-
poetry export --without-hashes -o package/lib/requirements.txt
220+
if [ -f "globalConfig.json" ]
221+
then
222+
echo " globalConfig.json found, creating package/lib and exporting poetry dependencies "
223+
mkdir -p package/lib || true
224+
poetry export --without-hashes -o package/lib/requirements.txt
225+
fi
222226
poetry export --without-hashes --dev -o requirements_dev.txt
223227
cat requirements_dev.txt
224228
fi

0 commit comments

Comments
 (0)