Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/python-sdk-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update Python SDK Documentation

on:
repository_dispatch:
types: [python-sdk-updated]

jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout docs repository
uses: actions/checkout@v3

- name: Checkout firecrawl repository
uses: actions/checkout@v3
Comment on lines +12 to +15

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: actions/checkout@v3
- name: Checkout firecrawl repository
uses: actions/checkout@v3
uses: actions/checkout@v5
- name: Checkout firecrawl repository
uses: actions/checkout@v5

https://github.com/actions/checkout?tab=readme-ov-file#checkout-v5

with:
repository: ${{ github.event.client_payload.repository }}
ref: ${{ github.event.client_payload.ref }}
path: firecrawl-source

- name: Copy updated OpenAPI file
run: |
cp firecrawl-source/apps/api/v1-openapi-with-examples.json ./api-specs/

- name: Copy Python examples
run: |
cp -r firecrawl-source/apps/python-sdk/examples/ ./python-examples/

- name: Commit and push updates
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
if ! git diff --staged --quiet; then
git commit -m "Update Python SDK documentation from ${{ github.event.client_payload.sha }}"
git push
fi