Skip to content

Commit d6fc882

Browse files
committed
Fix repository context for draft releases
Signed-off-by: irl-dan <97565471+irl-dan@users.noreply.github.com>
1 parent 0f5d5a7 commit d6fc882

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,20 @@ jobs:
195195
- name: Create or refresh the draft release
196196
env:
197197
GH_TOKEN: ${{ github.token }}
198+
GH_REPO: ${{ github.repository }}
198199
TAG: ${{ github.ref_name }}
199200
VERSION: ${{ needs.metadata.outputs.version }}
200201
shell: bash
201202
run: |
202203
set -euo pipefail
203204
assets=(release-assets/*)
204-
if gh release view "$TAG" >/dev/null 2>&1; then
205-
test "$(gh release view "$TAG" --json isDraft --jq .isDraft)" = true
206-
gh release upload "$TAG" "${assets[@]}" --clobber
205+
if gh release view "$TAG" --repo "$GH_REPO" >/dev/null 2>&1; then
206+
test "$(gh release view "$TAG" --repo "$GH_REPO" --json isDraft --jq .isDraft)" = true
207+
gh release upload "$TAG" "${assets[@]}" --repo "$GH_REPO" --clobber
207208
else
208209
notes="The macOS app is ad-hoc signed and the installer is unsigned for this first public release. macOS will require explicit approval in System Settings. Developer ID signing and notarization are planned."
209210
gh release create "$TAG" "${assets[@]}" \
211+
--repo "$GH_REPO" \
210212
--draft \
211213
--generate-notes \
212214
--title "Margin $VERSION" \

0 commit comments

Comments
 (0)