Skip to content

Commit c94e8d9

Browse files
committed
fix workflow
1 parent 88fb8d0 commit c94e8d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)