mirror of
https://github.com/Smeagolworms4/MQTT-Explorer.git
synced 2026-07-28 04:06:46 +00:00
Update push_readme.yml
This commit is contained in:
@@ -28,4 +28,5 @@ jobs:
|
||||
run: |
|
||||
DOCKERHUB_REPO_NAME=${GITHUB_REPOSITORY#*/}
|
||||
TOKEN=$(curl -s -X POST -H "Content-Type: application/json" -d '{"username": "${{ secrets.DOCKER_USERNAME }}", "password": "${{ secrets.DOCKER_PASSWORD }}"}' https://hub.docker.com/v2/users/login/ | jq -r .token)
|
||||
curl -s -X PATCH -H "Authorization: JWT $TOKEN" -H "Content-Type: application/json" -d "{\"full_description\": \"$(<Readme.md)\"}" https://hub.docker.com/v2/repositories/${{ secrets.DOCKER_USERNAME }}/$DOCKERHUB_REPO_NAME/
|
||||
DESC=$(< Readme.md | jq -sR .)
|
||||
curl -s -X PATCH -H "Authorization: JWT $TOKEN" -H "Content-Type: application/json" -d "{\"full_description\": $DESC}" https://hub.docker.com/v2/repositories/${{ secrets.DOCKER_USERNAME }}/$DOCKERHUB_REPO_NAME/
|
||||
|
||||
Reference in New Issue
Block a user