Skip to content

Commit 7c1eb5a

Browse files
committed
ci: fix zexi release publish repo context
1 parent dafe6db commit 7c1eb5a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/zexi-electron.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,16 @@ jobs:
166166
- name: Create or update release
167167
env:
168168
GH_TOKEN: ${{ github.token }}
169+
GH_REPO: ${{ github.repository }}
169170
RELEASE_TAG: ${{ inputs.release_tag }}
170171
RELEASE_NAME: ${{ inputs.release_name || inputs.release_tag }}
171172
run: |
172-
gh release view "$RELEASE_TAG" >/dev/null 2>&1 || gh release create "$RELEASE_TAG" --title "$RELEASE_NAME" --notes ""
173+
gh release view "$RELEASE_TAG" --repo "$GH_REPO" >/dev/null 2>&1 || gh release create "$RELEASE_TAG" --repo "$GH_REPO" --title "$RELEASE_NAME" --notes ""
173174
174175
- name: Upload release assets
175176
env:
176177
GH_TOKEN: ${{ github.token }}
178+
GH_REPO: ${{ github.repository }}
177179
RELEASE_TAG: ${{ inputs.release_tag }}
178180
run: |
179181
find release-artifacts -type f \
@@ -184,4 +186,4 @@ jobs:
184186
-name 'latest*.yml' -o \
185187
-name '*.blockmap' \
186188
\) \
187-
-print0 | xargs -0 gh release upload "$RELEASE_TAG" --clobber
189+
-print0 | xargs -0 gh release upload "$RELEASE_TAG" --repo "$GH_REPO" --clobber

0 commit comments

Comments
 (0)