mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-04 08:46:28 +00:00
Update preview-docs.yml
Use pull_request_target to be able to access FERN publication secret
This commit is contained in:
4
.github/workflows/preview-docs.yml
vendored
4
.github/workflows/preview-docs.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: deploy preview docs
|
name: deploy preview docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request_target:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
|
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
output=$(fern generate --docs --preview --log-level debug)
|
output=$(fern generate --docs --preview)
|
||||||
echo "$output"
|
echo "$output"
|
||||||
# Extract the URL
|
# Extract the URL
|
||||||
preview_url=$(echo "$output" | grep -oP '(?<=Published docs to )https://[^\s]*')
|
preview_url=$(echo "$output" | grep -oP '(?<=Published docs to )https://[^\s]*')
|
||||||
|
Reference in New Issue
Block a user