From b3234b73faf45747146eb12057b277615fb96fe0 Mon Sep 17 00:00:00 2001 From: KeshavAnandCode Date: Wed, 20 May 2026 22:24:04 -0500 Subject: [PATCH] added workflow --- .gitea/workflows/trigger-docs.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..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"