diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index 8b00883..ca18561 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -17,8 +17,9 @@ jobs: id: generate-docs env: FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + HEAD_REF: ${{ github.head_ref }} run: | - OUTPUT=$(fern generate --docs --preview 2>&1) || true + OUTPUT=$(fern generate --docs --preview --id "$HEAD_REF" 2>&1) || true echo "$OUTPUT" URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()') echo "Preview URL: $URL" diff --git a/fern/fern.config.json b/fern/fern.config.json index bc36bda..f6c7d6e 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "Petstore", - "version": "0.37.15" -} \ No newline at end of file + "version": "4.35.0" +}