Browse Source
* 🐛 Fix Gitter notification, use development gitter room until next release * 🔥 Remove trigger docs preview step from build-docs workflow as it requires a more privileged token, so it's now triggered by the preview docs watcher * 🔊 Dump context when building to allow debugging how to refactor the Gitter botpull/1755/head
committed by
GitHub
4 changed files with 9 additions and 30 deletions
@ -1,21 +0,0 @@ |
|||||
#! /usr/bin/env bash |
|
||||
|
|
||||
set -x |
|
||||
set -e |
|
||||
|
|
||||
PR=${PR} |
|
||||
|
|
||||
if [ -z "$PR" ]; then |
|
||||
echo "Not a PR build, skip trigger docs preview" |
|
||||
exit 0 |
|
||||
fi |
|
||||
|
|
||||
NAME=${NAME:?Variable not set} |
|
||||
GITHUB_TOKEN=${GITHUB_TOKEN:?Variable not set} |
|
||||
|
|
||||
curl -v \ |
|
||||
-X POST \ |
|
||||
-H "Authorization: token ${GITHUB_TOKEN}" \ |
|
||||
-H "Accept: application/vnd.github.v3+json" \ |
|
||||
https://api.github.com/repos/tiangolo/fastapi/actions/workflows/preview-docs.yml/dispatches \ |
|
||||
-d '{"ref":"master", "inputs": {"pr": "'"${PR}"'", "name": "'"${NAME}"'"}}' |
|
Loading…
Reference in new issue