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:
parent
b053978b38
commit
2515eebd4e
@ -92,6 +92,14 @@ if [ -f /root/userscripts/begin.sh ]; then
|
||||
fi
|
||||
|
||||
# Handle parameters and environment variables
|
||||
branch=$BRANCH_NAME
|
||||
echo ">> [$(date)] Branch: $branch"
|
||||
|
||||
devices=$DEVICE_LIST
|
||||
echo ">> [$(date)] Devices: $devices"
|
||||
|
||||
vendor=lineage
|
||||
|
||||
## CLEAN_OUTDIR
|
||||
if [ "$CLEAN_OUTDIR" = true ]; then
|
||||
echo ">> [$(date)] Cleaning '$ZIP_DIR'"
|
||||
@ -155,15 +163,8 @@ if [ "$LOCAL_MIRROR" = true ]; then
|
||||
fi
|
||||
|
||||
# Branch-specific stuff
|
||||
branch=$BRANCH_NAME
|
||||
branch_dir=${branch//[^[:alnum:]]/_}
|
||||
branch_dir=${branch_dir^^}
|
||||
echo ">> [$(date)] Branch: $branch"
|
||||
|
||||
vendor=lineage
|
||||
|
||||
devices=$DEVICE_LIST
|
||||
echo ">> [$(date)] Devices: $devices"
|
||||
|
||||
if [ -n "$branch" ] && [ -n "$devices" ]; then
|
||||
case "$branch" in
|
||||
|
Loading…
Reference in New Issue
Block a user