mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
add check for "snapshot-BRANCH_SLUG" arg to update-all-qqq-deps.sh -- if given, then we look for branchy versions, else we use main versions [skip ci]
This commit is contained in:
@ -97,7 +97,7 @@ else
|
||||
|
||||
artifact=$1
|
||||
version=$2
|
||||
if [ "$version" == "-l" ]; then
|
||||
if [ "$version" == "-s" ]; then
|
||||
useSlug=$(checkForBranchBuild $artifact)
|
||||
if [ "$useSlug" == "1" ]; then
|
||||
version=$SLUG
|
||||
@ -105,9 +105,11 @@ else
|
||||
version=$CURRENT_VERSION
|
||||
fi
|
||||
echo "Using $version for $artifact" >&2
|
||||
elif [ "$version" == "-l" ]; then
|
||||
version=$CURRENT_VERSION
|
||||
fi
|
||||
|
||||
if [ -z "$ar^tifact" -o -z "$version" ]; then
|
||||
if [ -z "$artifact" -o -z "$version" ]; then
|
||||
echo "Usage: $0 artifact snapshot-version-prefix"
|
||||
echo " or: $0 artifact -l (latest of CURRENT_VERSION, or branch-slug, if it has been deployed)"
|
||||
echo " or: $0 -i (interactive mode)"
|
||||
|
@ -13,9 +13,14 @@ fi
|
||||
CURRENT_VERSION="$(cat $QQQ_DEV_TOOLS_DIR/CURRENT-SNAPSHOT-VERSION)"
|
||||
MODULE_LIST_FILE=$QQQ_DEV_TOOLS_DIR/MODULE_LIST
|
||||
|
||||
getLatestSnapshotArg="-l"
|
||||
if [[ "$1" == "snapshot-BRANCH_SLUG" ]]; then
|
||||
getLatestSnapshotArg="-s"
|
||||
fi
|
||||
|
||||
for module in $(cat $MODULE_LIST_FILE); do
|
||||
echo "Updating $module..."
|
||||
version=$(get-latest-snapshot.sh $module -l)
|
||||
version=$(get-latest-snapshot.sh $module $getLatestSnapshotArg)
|
||||
update-dep.sh $module $version -q
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user