-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f508564
commit 09f0b0c
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"}' |