Skip to content

Commit

Permalink
Apparently we must specify the repo when not checked out
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EliahKagan committed Aug 1, 2024
1 parent 1fd48d5 commit 082b5ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ jobs:

env:
BASH_ENV: ./helpers.sh
REPOSITORY: ${{ github.repository }}
FEATURE: ${{ matrix.feature }}
VERSION: ${{ needs.create-release.outputs.version }}

Expand All @@ -246,7 +247,7 @@ jobs:
- name: Obtain single-architecture releases
run: |
gh release download "$VERSION" --pattern="$(name aarch64).tar.gz" --pattern="$(name x86_64).tar.gz"
gh release --repo "$REPOSITORY" download "$VERSION" --pattern="$(name aarch64).tar.gz" --pattern="$(name x86_64).tar.gz"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

0 comments on commit 082b5ae

Please sign in to comment.