Update Dependabot schedule to run weekly on Fridays (#2280) #756
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Docs | |
| on: | |
| push: | |
| branches: | |
| - next | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to publish docs from' | |
| required: false | |
| default: 'next' | |
| type: string | |
| repository_dispatch: | |
| types: [apollo-production-deploy] | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/composiohq/dev-base:latest | |
| if: ${{ (github.event_name == 'push' && contains(github.ref, 'refs/heads/next') && github.run_number > 1) || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }} | |
| permissions: write-all | |
| env: | |
| COMPOSIO_API_KEY: ${{ inputs.api_key || secrets.COMPOSIO_API_KEY }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Log trigger source | |
| run: | | |
| echo "Workflow triggered by: ${{ github.event_name }}" | |
| if [ "${{ github.event_name }}" = "repository_dispatch" ]; then | |
| echo "Triggered by Apollo production deployment" | |
| echo "Hermes commit: ${{ github.event.client_payload.hermes_commit }}" | |
| echo "Timestamp: ${{ github.event.client_payload.timestamp }}" | |
| fi | |
| - name: Install git | |
| run: apt-get update && apt-get install -y git | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Install Python Dependencies | |
| working-directory: ./fern | |
| run: | | |
| uv sync | |
| uv pip install ../python | |
| - name: Publish Docs | |
| working-directory: ./fern | |
| env: | |
| POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} | |
| FERN_TOKEN: ${{ secrets.FERN_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| run: pnpm turbo run publish |