From cdf53e9afa571522d3c86d60c10a5de36ec5639f Mon Sep 17 00:00:00 2001 From: Freek van de Ven Date: Sun, 11 Feb 2024 10:41:01 +0100 Subject: [PATCH] feat: add documentation workflow --- .github/workflows/documentation.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..c0f9e57 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,23 @@ +# .github/workflows/trigger-docs-update.yml +name: Trigger Documentation Update + +on: + release: + workflow_dispatch: + + +jobs: + trigger-doc-update: + runs-on: ubuntu-latest + steps: + - name: Trigger documentation workflow + env: + DOC_PAT: ${{ secrets.DOC_PAT }} + run: | + REPO_URL="https://github.com/${{ github.repository }}" + curl \ + -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token $DOC_PAT" \ + "https://api.github.com/repos/Iconica-Development/iconica_component_documentation/actions/workflows/documentation.yml/dispatches" \ + -d "{\"ref\":\"master\",\"inputs\":{\"repository_url\":\"$REPO_URL\"}}"