Update .forgejo/workflows/build-images.yaml

This commit is contained in:
Tommy 2025-01-03 16:25:53 +00:00
parent 95aa70a46a
commit 6ccc00d037
Signed by: Mooo[bot]
GPG key ID: CF3AFE4D5B62BB9A

View file

@ -26,7 +26,7 @@ jobs:
run: |
# Path to the directory with metadata.yaml
context_dir="/workspace/pub/containers/apps/${{ github.event.inputs.app }}"
metadata_file="${context_dir}/metadata.yaml"
metadata_file="$context_dir/metadata.yaml"
ls -lhart /workspace/pub/containers/apps/
ls -lhart /workspace/pub/containers/apps/home-assistant
@ -53,7 +53,7 @@ jobs:
platform=$(cat "$metadata_file" | yq ".channels[$i].platforms[$j]")
# Append JSON object
result="${result}{\"channel\":\"${channel_name}\",\"platform\":\"${platform}\"},"
result="${result}{\"channel\":${channel_name},\"platform\":${platform}},"
done
done
# Remove trailing comma