Skip to content

Commit b3c0c8b

Browse files
committed
Select repository explicitly when exporting artifact without checkout
1 parent d0d5878 commit b3c0c8b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/snap-publish.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ jobs:
7171
cd "$(dirname "$SNAP_FILE")"
7272
sha256sum "$(basename "$SNAP_FILE")" > SHA256SUMS
7373
printf 'Strict Snap from successful build %s. Installed compiler and offscreen GUI tests passed. GDB/host-installed tools are not supported by this confined package. Snap Store release is tracked separately.\n' "$BUILD_RUN_ID" > release-notes.txt
74-
if ! gh release view "snap-$VERSION" >/dev/null 2>&1; then
75-
gh release create "snap-$VERSION" --target "$SOURCE_SHA" --title "MEDHA $VERSION strict Snap" --notes-file release-notes.txt
74+
if ! gh release view "snap-$VERSION" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
75+
gh release create "snap-$VERSION" --repo "$GITHUB_REPOSITORY" --target "$SOURCE_SHA" --title "MEDHA $VERSION strict Snap" --notes-file release-notes.txt
7676
fi
77-
gh release upload "snap-$VERSION" "$(basename "$SNAP_FILE")" SHA256SUMS --clobber
77+
gh release upload "snap-$VERSION" --repo "$GITHUB_REPOSITORY" "$(basename "$SNAP_FILE")" SHA256SUMS --clobber
7878
printf '## Verified Snap available\n\nhttps://github.com/%s/releases/tag/snap-%s\n\nSource build: %s\n' "$GITHUB_REPOSITORY" "$VERSION" "$BUILD_RUN_ID" >> "$GITHUB_STEP_SUMMARY"
7979
- name: Require Snap Store publisher credential
8080
if: github.event_name == 'workflow_dispatch' && inputs.publish_to_store

0 commit comments

Comments
 (0)