Skip to content

Commit

Permalink
.github/publish-image.yml: Migrate from hub to gh
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Knöppler <[email protected]>
  • Loading branch information
theCalcaholic committed Oct 25, 2023
1 parent ddf7a5f commit eb35f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
success=false
for i in {1..5}
do
body="$(hub release show -f "%b" "${VERSION}")"
body="$(gh release view --json body "${VERSION}" | jq -r '.body')"
if ! [[ "$body" =~ .*'**Checksums:**'.* ]]
then
Expand All @@ -80,7 +80,7 @@ jobs:
\`\`\`"
gh release edit "${VERSION?}" -n "$body"
if hub release show -f "%b" "${VERSION}" | grep "$checksum"
if gh release view --json body "${VERSION}" | jq -r '.body' | grep "$checksum"
then
success=true
break
Expand Down

0 comments on commit eb35f83

Please sign in to comment.