drone/GiteaComposerPackage: ensure zip path does not include the path to the composer repository

This commit is contained in:
David Hiendl 2022-10-21 03:10:06 +02:00
parent fe2ea92a41
commit 55a08013f4

View File

@ -8,8 +8,7 @@
commands:
# drone does not support expanding vars in environment values, set defaults via bash
- if [[ -z "$COMPOSER_PACKAGE_DIR" ]]; then COMPOSER_PACKAGE_DIR=$DRONE_WORKSPACE_BASE; fi
- TEMP_DIR=$(mktemp -d)
- COMPOSER_PACKAGE_FILE=$TEMP_DIR/package.zip
- COMPOSER_PACKAGE_FILE=$COMPOSER_PACKAGE_DIR/package.zip
# unset ".version" in composer.json as it interfers with setting version via GET param ?version=
- |