Skip to content

Commit

Permalink
publish-image.yml: Us gh instead of hub as github API client, to work…
Browse files Browse the repository at this point in the history
… around mislav/hub#1817
  • Loading branch information
theCalcaholic committed Aug 16, 2022
1 parent 7a9ad8e commit f05f2fa
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 @@ -61,7 +61,6 @@ jobs:
exit 0
}
title="$(hub release show -f "%t" "${VERSION}")"
body="$(hub release show -f "%b" "${VERSION}")"
if ! [[ "$body" =~ .*'**Checksums:**'.* ]]
then
Expand All @@ -76,4 +75,5 @@ jobs:
body="${body%$'\n\`\`\`'*}
$checksum
\`\`\`"
hub release edit -a "${IMG?}" -m "${title?}" -m "$body" "${VERSION?}"
gh release upload "${VERSION?}" "${asset}"
gh release edit "${VERSION?}" -n "$body"

0 comments on commit f05f2fa

Please sign in to comment.