Skip to content

Commit 0d8f1c4

Browse files
committed
Apparently we must specify the repo when not checked out
This adds a `REPOSITORY` environment variable in at the job level for build-macos-universal2-release and references it in the two steps that apparently need it. Although these are the same two steps that use the token, that is not added to steps that don't require it, since it is sensitive.
1 parent f5ac296 commit 0d8f1c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ jobs:
235235

236236
env:
237237
BASH_ENV: ./helpers.sh
238+
REPOSITORY: ${{ github.repository }}
238239
FEATURE: ${{ matrix.feature }}
239240
VERSION: ${{ needs.create-release.outputs.version }}
240241

@@ -246,7 +247,7 @@ jobs:
246247
247248
- name: Obtain single-architecture releases
248249
run: |
249-
gh release download "$VERSION" --pattern="$(name aarch64).tar.gz" --pattern="$(name x86_64).tar.gz"
250+
gh release --repo "$REPOSITORY" download "$VERSION" --pattern="$(name aarch64).tar.gz" --pattern="$(name x86_64).tar.gz"
250251
env:
251252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
252253

@@ -273,6 +274,6 @@ jobs:
273274
echo "ASSET=$(name universal).tar.gz" >> "$GITHUB_ENV"
274275
275276
- name: Upload release archive
276-
run: gh release upload "$VERSION" "$ASSET"
277+
run: gh release --repo "$REPOSITORY" upload "$VERSION" "$ASSET"
277278
env:
278279
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)