From 8ee54dd33bae17245d5b254dc6554619c779d769 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Fri, 13 Jan 2023 15:07:55 +0100 Subject: [PATCH] feat(ci): add update draft doc trigger --- .github/workflows/update-draft-docs.yml | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/update-draft-docs.yml diff --git a/.github/workflows/update-draft-docs.yml b/.github/workflows/update-draft-docs.yml new file mode 100644 index 00000000..4006dd42 --- /dev/null +++ b/.github/workflows/update-draft-docs.yml @@ -0,0 +1,27 @@ +name: update-draft-docs + +on: + push: + branches: [ main ] + +jobs: + update-docs: + runs-on: ubuntu-22.04 + steps: + - name: Update draft docs repository + uses: fjogeleit/http-request-action@v1 + with: + url: 'https://api.github.com/repos/okp4/docs/actions/workflows/39152549/dispatches' + method: 'POST' + customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.OKP4_TOKEN }}"}' + data: |- + { + "ref": "main", + "inputs": { + "version": "main", + "repository": "${{github.repository}}", + "section": "contracts", + "docs_directory": "docs/*" + "draft": "true" + } + }