Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pr-preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: "agentapi_${{ steps.pr.outputs.number }}"
PR_NUMBER: ${{ steps.pr.outputs.number }}

run: |
# Check if release exists
if gh release view "$RELEASE_TAG" --repo ${{ github.repository }} &>/dev/null; then
Expand All @@ -52,7 +51,8 @@ jobs:
gh release create "$RELEASE_TAG" ./out/* \
--title "$RELEASE_TAG" \
--notes "Preview release for PR #${PR_NUMBER}" \
--repo ${{ github.repository }}
--repo ${{ github.repository }} \
--latest=false --prerelease
fi

- name: Comment on PR
Expand All @@ -66,5 +66,5 @@ jobs:
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body: `✅ Preview binaries are ready!\n\nTo test with modules: \`\`\`agentapi: ${prNumber}\`\`\` or download from: ${repoUrl}/releases/tag/${releaseTag}`
body: `✅ Preview binaries are ready!\n\nTo test with modules: \`\`\`agentapi_version = "agentapi_${prNumber}"\`\`\` or download from: ${repoUrl}/releases/tag/${releaseTag}`
});