From db68da0a90a1b46ebe592b7840633b2f762f0820 Mon Sep 17 00:00:00 2001 From: KeshavAnandCode Date: Thu, 21 May 2026 16:11:18 +0000 Subject: [PATCH] added trigger docs workflow --- .gitea/workflows/trigger-docs.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/trigger-docs.yml diff --git a/.gitea/workflows/trigger-docs.yml b/.gitea/workflows/trigger-docs.yml new file mode 100644 index 0000000..10680eb --- /dev/null +++ b/.gitea/workflows/trigger-docs.yml @@ -0,0 +1,22 @@ +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" +