Skip to content

Commit

Permalink
Merge pull request VSCodium#997 from dsm/master
Browse files Browse the repository at this point in the history
changed hardcoded owner
  • Loading branch information
GitMensch authored Mar 4, 2022
2 parents b319b17 + f7e1c11 commit 351460f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ do
EXIT_STATUS=$?
echo "exit: $EXIT_STATUS"

OWNER="${GITHUB_REPOSITORY_OWNER:-"VSCodium"}"
REPO_NAME=${GITHUB_REPOSITORY:(${#OWNER}+1)}
REPOSITORY="${REPO_NAME:-"vscodium"}"

if (( $EXIT_STATUS )); then
for (( i=0; i<10; i++ ))
do
github-release delete --owner VSCodium --repo vscodium --tag "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
github-release delete --owner "${OWNER}" --repo "${REPOSITORY}" --tag "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"

sleep $(( 15 * (i + 1)))

Expand All @@ -49,7 +53,7 @@ do
if (( $EXIT_STATUS )); then
echo "'${FILE}' hasn't been uploaded!"

github-release delete --owner VSCodium --repo vscodium --tag "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"
github-release delete --owner "${OWNER}" --repo "${REPOSITORY}" --tag "${MS_TAG}" "${FILE}" "${FILE}.sha1" "${FILE}.sha256"

exit 1
fi
Expand Down

0 comments on commit 351460f

Please sign in to comment.