Skip to content

Commit d8769d2

Browse files
authored
fix: add -R flag to gh release download in publish workflow (#2831)
The publish jobs don't check out the repo, so gh CLI can't infer the repository from git. Pass -R explicitly to all gh release download calls.
1 parent 46ad226 commit d8769d2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release-publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Download coglet wheels from release
9393
run: |
9494
mkdir -p dist
95-
gh release download "$TAG" -p "coglet-*.whl" -D dist
95+
gh release download "$TAG" -p "coglet-*.whl" -D dist -R "${{ github.repository }}"
9696
env:
9797
TAG: ${{ github.event.release.tag_name }}
9898
GH_TOKEN: ${{ github.token }}
@@ -136,8 +136,8 @@ jobs:
136136
- name: Download SDK artifacts from release
137137
run: |
138138
mkdir -p dist
139-
gh release download "$TAG" -p "cog-*.whl" -D dist
140-
gh release download "$TAG" -p "cog-*.tar.gz" -D dist
139+
gh release download "$TAG" -p "cog-*.whl" -D dist -R "${{ github.repository }}"
140+
gh release download "$TAG" -p "cog-*.tar.gz" -D dist -R "${{ github.repository }}"
141141
env:
142142
TAG: ${{ github.event.release.tag_name }}
143143
GH_TOKEN: ${{ github.token }}
@@ -166,7 +166,7 @@ jobs:
166166
repositories: homebrew-tap
167167

168168
- name: Download checksums from release
169-
run: gh release download "$TAG" -p checksums.txt
169+
run: gh release download "$TAG" -p checksums.txt -R "${{ github.repository }}"
170170
env:
171171
TAG: ${{ github.event.release.tag_name }}
172172
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)