Skip to content

Commit b024c4e

Browse files
committed
fix release
1 parent 60f6b38 commit b024c4e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ jobs:
8484
- name: create or update release
8585
if: startsWith(github.ref, 'refs/tags/')
8686
run: |
87-
if gh release view "${GITHUB_REF_NAME}" >/dev/null 2>&1; then
88-
gh release upload "${GITHUB_REF_NAME}" "${GITHUB_WORKSPACE}/analyzer.zip" --clobber
87+
if gh release view "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" >/dev/null 2>&1; then
88+
gh release upload "${GITHUB_REF_NAME}" "${GITHUB_WORKSPACE}/analyzer.zip" --repo "${GITHUB_REPOSITORY}" --clobber
8989
else
90-
gh release create "${GITHUB_REF_NAME}" "${GITHUB_WORKSPACE}/analyzer.zip" --generate-notes
90+
gh release create "${GITHUB_REF_NAME}" "${GITHUB_WORKSPACE}/analyzer.zip" --repo "${GITHUB_REPOSITORY}" --generate-notes
9191
fi
9292
env:
9393
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)