Skip to content

Commit 61160f7

Browse files
committed
➕ Add a final checking for the response code in the CI workflow.
1 parent 60da2f4 commit 61160f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/dockerhub-readme-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,11 @@ jobs:
5959
-d "{\"description\":\"${SHORT_NEW}\", \"full_description\": ${NEW} }" \
6060
"https://hub.docker.com/v2/repositories/${REPO}/")
6161
echo "PATCH full_description -> $CODE"
62+
63+
# Check if the response code is 200 (success)
64+
if [ "$CODE" != "200" ]; then
65+
echo "❌ Failed to update Docker Hub README. HTTP status code: $CODE"
66+
exit 1
67+
fi
68+
69+
echo "✅ Successfully updated Docker Hub README"

0 commit comments

Comments
 (0)