From e7834a7ec27c6f4105c65ab5389df08272d4dbcb Mon Sep 17 00:00:00 2001 From: rafaelmmiller <150964962+rafaelsideguide@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:30:34 -0300 Subject: [PATCH] workflow --- .github/workflows/python-sdk-update.yml | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/python-sdk-update.yml diff --git a/.github/workflows/python-sdk-update.yml b/.github/workflows/python-sdk-update.yml new file mode 100644 index 00000000..88f13313 --- /dev/null +++ b/.github/workflows/python-sdk-update.yml @@ -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 + 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 \ No newline at end of file