File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ jobs:
113113 VERSION="${RAW_TAG#v}"
114114 TITLE="TypeScript Go ${VERSION}"
115115 NOTES="Release ${VERSION}"
116+ REPO="${GITHUB_REPOSITORY}"
116117
117118 shopt -s nullglob
118119 ASSETS=(release/*.zip)
@@ -121,9 +122,9 @@ jobs:
121122 exit 1
122123 fi
123124
124- if gh release view "$RAW_TAG" >/dev/null 2>&1; then
125- gh release edit "$RAW_TAG" --title "$TITLE" --notes "$NOTES"
126- gh release upload "$RAW_TAG" "${ASSETS[@]}" --clobber
125+ if gh release view "$RAW_TAG" --repo "$REPO" >/dev/null 2>&1; then
126+ gh release edit "$RAW_TAG" --repo "$REPO" -- title "$TITLE" --notes "$NOTES"
127+ gh release upload "$RAW_TAG" "${ASSETS[@]}" --repo "$REPO" -- clobber
127128 else
128- gh release create "$RAW_TAG" "${ASSETS[@]}" --title "$TITLE" --notes "$NOTES" --latest --verify-tag
129+ gh release create "$RAW_TAG" "${ASSETS[@]}" --repo "$REPO" -- title "$TITLE" --notes "$NOTES" --latest --verify-tag
129130 fi
You can’t perform that action at this time.
0 commit comments