Skip to content

Commit f48f5c5

Browse files
committed
fix(release): pass --repo to gh in finalize-release (no checkout to infer it)
1 parent 5e946d5 commit f48f5c5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ jobs:
233233
steps:
234234
# Flip the draft (created earlier) to live only after both registries
235235
# have the new version. github.token has the contents:write granted above.
236+
# This job does no checkout, so `gh` cannot infer the repo from a git
237+
# remote -- pass it explicitly with --repo, or the edit dies with
238+
# "fatal: not a git repository".
236239
- name: Mark release as published
237240
env:
238241
GH_TOKEN: ${{ github.token }}
239-
run: gh release edit "${{ github.ref_name }}" --draft=false
242+
run: gh release edit "${{ github.ref_name }}" --repo "${{ github.repository }}" --draft=false

0 commit comments

Comments
 (0)