name: Trigger Docs Rebuild on: push: branches: ["main"] paths: - "README.md" jobs: trigger: runs-on: ubuntu-latest steps: - name: Trigger docs rebuild env: DOCS_TOKEN: ${{ secrets.DOCS_TRIGGER_TOKEN }} run: | curl -s -X POST \ -H "Authorization: token $DOCS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"ref": "main"}' \ "https://git.keshavanand.net/api/v1/repos/foreign-thon/foreignthon-docs/actions/workflows/deploy.yml/dispatches"