mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
26 lines
532 B
YAML
26 lines
532 B
YAML
name: Revalidate Docs
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- next
|
|
paths:
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
revalidate:
|
|
name: Revalidate Docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger docs revalidation
|
|
run: |
|
|
response=$(curl "${{ secrets.DOCS_REVALIDATE_URL }}" --silent --show-error)
|
|
echo "Response: $response"
|
|
if [ "$response" != '{"success":true}' ]; then
|
|
echo "Error: Unexpected response"
|
|
exit 1
|
|
fi
|