Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix: simplify preview URL extraction in documentation workflow

[email protected]f09979a137f3
diff --git a/.github/workflows/preview_docs.yml b/.github/workflows/preview_docs.yml
index 19329f4f7..0b3764143 100644
--- a/.github/workflows/preview_docs.yml
+++ b/.github/workflows/preview_docs.yml
@@ -41,11 +41,9 @@ jobs:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
run: |
- pnpm turbo run preview -- --log-level debug \
- | tee turbo.log \
- | grep -oP 'Published docs to \K.*(?= \()' \
- | head -n1 \
- | tee preview_url.txt
+ URL=$(pnpm turbo run preview -- --log-level debug | grep -oP 'Published docs to \K.*(?= \()')
+ echo "Preview URL: $URL"
+ echo "Preview your docs: $URL" > preview_url.txt
- name: Comment URL in PR
uses: thollander/[email protected]