Skip to content

Commit b87cbd7

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

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
@@ -30,8 +30,9 @@ jobs:
3030
id: generate-docs
3131
env:
3232
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
33+
HEAD_REF: ${{ github.head_ref }}
3334
run: |
34-
OUTPUT=$(fern generate --docs --preview --instance fern-api.docs.buildwithfern.com/learn 2>&1) || true
35+
OUTPUT=$(fern generate --docs --preview --id "$HEAD_REF" --instance fern-api.docs.buildwithfern.com/learn 2>&1) || true
3536
echo "$OUTPUT"
3637
URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
3738
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": "fern",
3-
"version": "4.29.0"
3+
"version": "4.35.0"
44
}

0 commit comments

Comments
 (0)