Skip to content

Commit 3b5832c

Browse files
committed
Fix push description to quay.io
1 parent e3d4d12 commit 3b5832c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/update-registry-metadata.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ jobs:
6969
7070
- name: Update Quay.io Repository Description
7171
run: |
72+
JSON_DESCRIPTION="$(jq -n --arg desc "$(<README.md)" '{description: $desc}')"
7273
curl -sSf -X PUT \
7374
-H "Authorization: Bearer ${{ secrets.PANUBUILD_QUAYIO_API_TOKEN }}" \
7475
-H "Content-Type: application/json" \
75-
-d "{\"description\": \"$(cat README.md)\"}" \
76+
-d "${JSON_DESCRIPTION}" \
7677
'https://quay.io/api/v1/repository/${{ steps.image_name.outputs.image_name }}'

0 commit comments

Comments
 (0)