Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 23:15 UTC
fix: improve preview URL extraction in workflow
balyan.sid@gmail.com committed
Jun 25, 2025 at 15:29 UTC
fb9d779eae73241dbcdf599351834de077395bcb
1 file changed
+5
-5
.github/workflows/preview_docs.yml
+5
-5
@@ -44,12 +44,12 @@ jobs:
44
env:
45
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
46
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
47
- run: pnpm turbo run preview -- --log-level debug
48
-
49
- - name: Extract and comment preview URL
50
- working-directory: ./fern
47
run: |
52
- echo "🌿 Check the logs above for the preview URL" > preview_url.txt
48
+ OUTPUT=$(pnpm turbo run preview -- --log-level debug)
49
+ echo "$OUTPUT"
50
+ URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
51
+ echo "Preview URL: $URL"
52
+ echo "🌿 Preview your docs: $URL" > preview_url.txt
53
54
- name: Comment URL in PR
55
uses: thollander/actions-comment-pull-request@v2.4.3