@@ -471,12 +471,13 @@ jobs:
471
471
- name : Setup addon
472
472
run : |
473
473
if [ -f "poetry.lock" ]
474
- then
475
- mkdir -p package/lib || true
476
- pip install poetry==1.5.1 poetry-plugin-export==1.4.0
477
- poetry export --without-hashes -o package/lib/requirements.txt
478
- poetry export --without-hashes --dev -o requirements_dev.txt
479
- fi
474
+ then
475
+ mkdir -p package/lib || true
476
+ pip install poetry==1.5.1 poetry-plugin-export==1.4.0
477
+ poetry lock --check
478
+ poetry export --without-hashes -o package/lib/requirements.txt
479
+ poetry export --without-hashes --dev -o requirements_dev.txt
480
+ fi
480
481
if [ ! -f requirements_dev.txt ]; then echo no requirements;exit 0 ;fi
481
482
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
482
483
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com
@@ -521,12 +522,13 @@ jobs:
521
522
- name : Setup addon
522
523
run : |
523
524
if [ -f "poetry.lock" ]
524
- then
525
- mkdir -p package/lib || true
526
- pip install poetry==1.5.1 poetry-plugin-export==1.4.0
527
- poetry export --without-hashes -o package/lib/requirements.txt
528
- poetry export --without-hashes --dev -o requirements_dev.txt
529
- fi
525
+ then
526
+ mkdir -p package/lib || true
527
+ pip install poetry==1.5.1 poetry-plugin-export==1.4.0
528
+ poetry lock --check
529
+ poetry export --without-hashes -o package/lib/requirements.txt
530
+ poetry export --without-hashes --dev -o requirements_dev.txt
531
+ fi
530
532
if [ ! -f requirements_dev.txt ]; then echo no requirements;exit 0 ;fi
531
533
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf https://github.com
532
534
git config --global --add url."https://${{ secrets.GH_TOKEN_ADMIN }}@github.com".insteadOf ssh://git@github.com
@@ -579,7 +581,6 @@ jobs:
579
581
then
580
582
echo " poetry.lock found "
581
583
sudo pip3 install poetry==1.5.1 poetry-plugin-export==1.4.0
582
- poetry lock --check
583
584
poetry export --without-hashes -o requirements.txt
584
585
if [ "$(grep -cve '^\s*$' requirements.txt)" -ne 0 ]
585
586
then
0 commit comments