diff --git a/.gitea/workflows/trigger-docs.yml b/.gitea/workflows/trigger-docs.yml new file mode 100644 index 0000000..8ebd2c5 --- /dev/null +++ b/.gitea/workflows/trigger-docs.yml @@ -0,0 +1,21 @@ +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"