Skip to content

Commit

Permalink
asset_storage: print the asset's version
Browse files Browse the repository at this point in the history
  • Loading branch information
andypf committed Jun 27, 2024
1 parent afd4eb1 commit 3665b70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/scripts/asset_storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,20 @@ export OS_PASSWORD=$OS_PASSWORD
# auth swift and set OS_STORAGE_URL and OS_AUTH_TOKEN
eval "$(swift auth)"

# get version from $ASSETS_PATH/package.json

if [ -f "$ASSET_PATH/package.json" ]; then
ASSET_VERSION=$(jq -r '.version' "$ASSET_PATH/package.json")
fi

echo "----------------------------------"
echo "use ACTION = $ACTION"
if [[ -n "$ASSET_TYPE" ]]; then
echo "use ASSET_TYPE = $ASSET_TYPE"
fi
echo "use ASSET_PATH = $ASSET_PATH"
echo "use ASSET_NAME = $ASSET_NAME"
echo "use ASSET_VERSION = $ASSET_VERSION"
echo "use CONTAINER = $CONTAINER"
echo "----------------------------------"

Expand Down

0 comments on commit 3665b70

Please sign in to comment.