1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Handle BRANCH_NAME and DEVICE_LIST earlier

This commit is contained in:
Pete Fotheringham 2024-09-02 13:08:02 +01:00
parent b053978b38
commit 2515eebd4e

@ -92,6 +92,14 @@ if [ -f /root/userscripts/begin.sh ]; then
fi fi
# Handle parameters and environment variables # Handle parameters and environment variables
branch=$BRANCH_NAME
echo ">> [$(date)] Branch: $branch"
devices=$DEVICE_LIST
echo ">> [$(date)] Devices: $devices"
vendor=lineage
## CLEAN_OUTDIR ## CLEAN_OUTDIR
if [ "$CLEAN_OUTDIR" = true ]; then if [ "$CLEAN_OUTDIR" = true ]; then
echo ">> [$(date)] Cleaning '$ZIP_DIR'" echo ">> [$(date)] Cleaning '$ZIP_DIR'"
@ -155,15 +163,8 @@ if [ "$LOCAL_MIRROR" = true ]; then
fi fi
# Branch-specific stuff # Branch-specific stuff
branch=$BRANCH_NAME
branch_dir=${branch//[^[:alnum:]]/_} branch_dir=${branch//[^[:alnum:]]/_}
branch_dir=${branch_dir^^} branch_dir=${branch_dir^^}
echo ">> [$(date)] Branch: $branch"
vendor=lineage
devices=$DEVICE_LIST
echo ">> [$(date)] Devices: $devices"
if [ -n "$branch" ] && [ -n "$devices" ]; then if [ -n "$branch" ] && [ -n "$devices" ]; then
case "$branch" in case "$branch" in