From 7888ea3ae526e6bae9a63aa46635bd3311180633 Mon Sep 17 00:00:00 2001 From: soup Date: Sat, 23 Nov 2024 16:11:59 +0100 Subject: [PATCH] feat(ci): add workflow to trigger docs update on release (#1826) --- .github/workflows/trigger_docs_update.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/trigger_docs_update.yml diff --git a/.github/workflows/trigger_docs_update.yml b/.github/workflows/trigger_docs_update.yml new file mode 100644 index 0000000..592e910 --- /dev/null +++ b/.github/workflows/trigger_docs_update.yml @@ -0,0 +1,18 @@ +# .github/workflows/trigger_docs_update.yml +name: Trigger Docs Update + +on: + release: + types: [published] + +jobs: + trigger_docs_update: + runs-on: ubuntu-latest + steps: + - name: Trigger docs workflow + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.DOCS_TOKEN }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/autobrr/autobrr.com/dispatches \ + -d '{"event_type": "update-release-notes"}' \ No newline at end of file