Skip to content

Commit 05c59e8

Browse files
devin-ai-integration[bot]kenny
andauthored
feat: use --id flag with branch name for stable preview URLs (#108)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: kenny <kenny@buildwithfern.com>
1 parent 3d9ddee commit 05c59e8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/preview-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ jobs:
2626
id: generate-docs
2727
env:
2828
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
29+
HEAD_REF: ${{ github.head_ref }}
2930
run: |
30-
OUTPUT=$(fern generate --docs --preview 2>&1) || true
31+
OUTPUT=$(fern generate --docs --preview --id "$HEAD_REF" 2>&1) || true
3132
echo "$OUTPUT"
3233
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
3334
echo "preview_url=$URL" >> $GITHUB_OUTPUT

fern/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization": "plantstore",
3-
"version": "4.15.5"
3+
"version": "4.35.0"
44
}

0 commit comments

Comments
 (0)