From 09f0b0c388931626a4fa0e93bafdd0cfc7790823 Mon Sep 17 00:00:00 2001 From: jens-coppejans-klarrio Date: Mon, 27 May 2024 15:44:51 +0200 Subject: [PATCH] Create mkdocs.yml --- .github/workflows/mkdocs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/mkdocs.yml diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml new file mode 100644 index 0000000..1e1ccde --- /dev/null +++ b/.github/workflows/mkdocs.yml @@ -0,0 +1,26 @@ +name: makedocs + +# Controls when the workflow will run +on: + push: + branches: [ "main" ] + + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + # - name: Get GitHub App Installation Access Token + # id: token + # run: | + # # Obtain a token from `dpng-gitops` app, this application has permissions to read private repositories + # TOKEN="$(npx obtain-github-app-installation-access-token ci ${{ secrets.GH_APP_CREDENTIALS_TOKEN }})" + # echo "::add-mask::$TOKEN" + # echo "token=$( echo "$TOKEN" )" >> $GITHUB_OUTPUT + - name: Dispatch event to main repository + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ steps.token.outputs.token }}" \ + -H "Accept: application/vnd.github.everest-preview+json" \ + https://api.github.com/repos/Klarrio/platform-documentation/dispatches \ + -d '{"event_type": "trigger-main-workflow-servicemesh"}'