test: Add 3 and update 5 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 49s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m7s
Build-Test-Publish / create-manifest (push) Successful in 16s

This commit is contained in:
Your Name
2025-08-10 15:55:36 +12:00
parent 2d790466ed
commit 1fed086348
8 changed files with 157 additions and 7 deletions

View File

@@ -22,8 +22,11 @@ echo "Original hash: $ORIGINAL_HASH"
HOST=$(echo "$CONFIG" | jq -r '.host')
PORT=$(echo "$CONFIG" | jq -r '.port')
# extract the first write token from the config
WRITE_TOKEN=$(echo "$CONFIG" | jq -r '.write_tokens[0]')
# randomly select one of the available write tokens from the config
TOKEN_COUNT=$(echo "$CONFIG" | jq -r '.write_tokens | length')
RANDOM_INDEX=$((RANDOM % TOKEN_COUNT))
WRITE_TOKEN=$(echo "$CONFIG" | jq -r ".write_tokens[$RANDOM_INDEX]")
echo "Using token index $RANDOM_INDEX out of $TOKEN_COUNT available tokens"
# Upload the file
echo "Uploading file..."