浏览代码

fix: don't recreate release [skip ci]

Baptiste Augrain 3 年之前
父节点
当前提交
a549e0bdad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      release.sh

+ 1 - 1
release.sh

@@ -18,7 +18,7 @@ fi
 
 
 npm install -g github-release-cli
 npm install -g github-release-cli
 
 
-if [[ $( gh release view "${RELEASE_VERSION}" 2>&1 ) =~ "release not found" ]]; then
+if [[ $( gh release view --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}" 2>&1 ) =~ "release not found" ]]; then
   echo "Creating release '${RELEASE_VERSION}'"
   echo "Creating release '${RELEASE_VERSION}'"
   gh release create --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}"
   gh release create --repo "${OWNER}/${REPOSITORY}" "${RELEASE_VERSION}"
 fi
 fi