From 8a3d35a42d5afec68717906c7bd589d044e55b39 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 29 Aug 2022 22:36:37 +0200 Subject: [PATCH] fix: add owner to gh commands [skip ci] --- release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release.sh b/release.sh index c75c05d..7788097 100755 --- a/release.sh +++ b/release.sh @@ -20,7 +20,7 @@ npm install -g github-release-cli if [[ $( gh release view "${RELEASE_VERSION}" 2>&1 ) =~ "release not found" ]]; then echo "Creating release '${RELEASE_VERSION}'" - gh release create --repo "${REPOSITORY}" "${RELEASE_VERSION}" + gh release create --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}" fi cd artifacts @@ -31,7 +31,7 @@ for FILE in * do if [[ -f "${FILE}" ]] && [[ "${FILE}" != *.sha1 ]] && [[ "${FILE}" != *.sha256 ]]; then echo "::group::Uploading '${FILE}' at $( date "+%T" )" - gh release upload --repo "${REPOSITORY}" "${RELEASE_VERSION}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" + gh release upload --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" EXIT_STATUS=$? echo "exit: ${EXIT_STATUS}" @@ -44,7 +44,7 @@ do sleep $(( 15 * (i + 1))) echo "RE-Uploading '${FILE}' at $( date "+%T" )" - gh release upload --repo "${REPOSITORY}" "${RELEASE_VERSION}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" + gh release upload --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256" EXIT_STATUS=$? echo "exit: ${EXIT_STATUS}"