mirror of
https://github.com/peter-evans/dockerhub-description.git
synced 2024-11-22 03:59:34 +01:00
Remove duplicate flag
This commit is contained in:
parent
9baceaf7be
commit
09a017779e
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d ${LOGIN_PAYLOAD}
|
||||||
# Send a PATCH request to update the description of the repository
|
# Send a PATCH request to update the description of the repository
|
||||||
echo "Sending PATCH request"
|
echo "Sending PATCH request"
|
||||||
REPO_URL="https://hub.docker.com/v2/repositories/${DOCKERHUB_USERNAME}/${DOCKERHUB_REPOSITORY}/"
|
REPO_URL="https://hub.docker.com/v2/repositories/${DOCKERHUB_USERNAME}/${DOCKERHUB_REPOSITORY}/"
|
||||||
RESPONSE_CODE=$(curl -s --write-out %{response_code} --silent --output /dev/null -H "Authorization: JWT ${TOKEN}" -X PATCH --data-urlencode full_description@${README_FILEPATH} ${REPO_URL})
|
RESPONSE_CODE=$(curl -s --write-out %{response_code} --output /dev/null -H "Authorization: JWT ${TOKEN}" -X PATCH --data-urlencode full_description@${README_FILEPATH} ${REPO_URL})
|
||||||
echo "Received response code: $RESPONSE_CODE"
|
echo "Received response code: $RESPONSE_CODE"
|
||||||
|
|
||||||
if [ $RESPONSE_CODE -eq 200 ]; then
|
if [ $RESPONSE_CODE -eq 200 ]; then
|
||||||
|
|
Loading…
Reference in a new issue