Skip to content

Commit bd2f793

Browse files
committed
Fix latest-release promotion outside a checkout
1 parent 930ca89 commit bd2f793

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)