Skip to content

Commit

Permalink
fix: yetus
Browse files Browse the repository at this point in the history
Signed-off-by: yash-zededa <[email protected]>
  • Loading branch information
yash-zededa committed Oct 28, 2024
1 parent 42f5d40 commit 3754c64
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ jobs:
run: |
# Create SHA256 checksum for rootfs.img
sha256sum "assets/rootfs.img" | awk '{ print $1 }' > "assets/${ARCH}.rootfs.img.sha256"
# Rename files in assets to include architecture prefix if not already prefixed, then upload each one
for asset in assets/*; do
base_name=$(basename "$asset")
Expand All @@ -124,15 +123,12 @@ jobs:
new_name="${ARCH}.${base_name}" # Add ARCH prefix
mv "$asset" "assets/$new_name" # Rename the file
fi

echo "Uploading assets/$new_name as $new_name..."

upload_response=$(curl -s -X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @"assets/$new_name" \
"$UPLOAD_URL?name=$new_name")

if echo "$upload_response" | jq -e .id > /dev/null; then
echo "$new_name uploaded successfully."
else
Expand Down

0 comments on commit 3754c64

Please sign in to comment.