Use PAT for trigger request

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2024-06-05 18:24:19 +02:00
parent 96f41b4d7f
commit 25185bcdb8

View file

@ -35,7 +35,7 @@ jobs:
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.UPDATE_DOCS }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${repo_owner}/${repo_name}/dispatches \
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"version\": \"${version}\", \"doc_filenames\": ${formatted_doc_filenames}, \"encoded_file_contents\": ${formatted_encoded_file_contents} }}"