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
@ -24,12 +24,6 @@ jobs: |
|||||
with: |
with: |
||||
name: docs-zip-${{ github.sha }} |
name: docs-zip-${{ github.sha }} |
||||
path: ./docs.zip |
path: ./docs.zip |
||||
- name: Trigger Docs Preview |
|
||||
env: |
|
||||
PR: "${{ github.event.number }}" |
|
||||
NAME: "docs-zip-${{ github.sha }}" |
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
|
||||
run: bash ./scripts/trigger-docs-preview.sh |
|
||||
- name: Deploy to Netlify |
- name: Deploy to Netlify |
||||
uses: nwtgck/[email protected] |
uses: nwtgck/[email protected] |
||||
with: |
with: |
||||
|
@ -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