Skip to content

Commit 54cbfb6

Browse files
authored
Merge pull request #12 from codebase/codex/fix-promote-workflow
Fix latest-release promotion outside a checkout
2 parents 930ca89 + bd2f793 commit 54cbfb6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/promote.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
- name: Mark the matching GitHub release as latest
4242
run: |
4343
VERSION="${GITHUB_REF_NAME#promote-latest-v}"
44-
gh release edit "v$VERSION" --prerelease=false --latest
44+
gh release edit "v$VERSION" \
45+
--repo "$GITHUB_REPOSITORY" \
46+
--prerelease=false \
47+
--latest
4548
env:
4649
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)