We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c95c32 commit ec49507Copy full SHA for ec49507
1 file changed
.github/workflows/fern-docs-preview.yml
@@ -33,7 +33,11 @@ jobs:
33
run: |
34
output=$(npm run docs:preview 2>&1)
35
echo "$output"
36
- url=$(echo "$output" | grep -oP 'https://[^\s]+buildwithfern\.com[^\s]+' | tail -1)
+ url=$(printf '%s\n' "$output" \
37
+ | grep -oP 'https://[A-Za-z0-9./?&=_:%#~+-]*buildwithfern\.com[A-Za-z0-9./?&=_:%#~+-]*' \
38
+ | tail -n 1 \
39
+ | perl -CS -pe 's/\x{200B}//g; s/%E2%80%8B$//i')
40
+
41
echo "url=$url" >> "$GITHUB_OUTPUT"
42
env:
43
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
@@ -47,5 +51,5 @@ jobs:
47
51
issue_number: context.issue.number,
48
52
owner: context.repo.owner,
49
53
repo: context.repo.repo,
50
- body: `📖 **Docs preview:** ${{ steps.preview.outputs.url }}`
54
+ body: '📖 **Docs preview:** ${{ steps.preview.outputs.url }}'
55
})
0 commit comments