mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-30 17:50:39 -05:00
* 🍱 Save docs zip when building docs * 🙈 Add docs.zip artifact to .gitignore * 🚀 Update deploy artifact name * ♻️ Upload artifact directory * ✨ Add WIP trigger docs preview * ♻️ Update trigger docs preview * 👷 Update env vars for docs preview * 👷 Update PR extraction * 👷 Try to show GitHub event * 💚 Try to see if GitHub context templates is causing the problem * 💚 Try to debug context GitHub event * 🔊 Debug GitHub event context * 👷 Update debugging action * 👷 Update debug * 👷 Update Action * ♻️ Update script to trigger docs preview * ⚡️ Try to use Zip again to improve speed * 🔧 Update zip scripts * ✨ Add preview docs on event * 🚀 Trigger deploy preview on PRs * 🐛 Fix trigger script env vars
14 lines
342 B
Bash
14 lines
342 B
Bash
#! /usr/bin/env bash
|
|
|
|
set -x
|
|
set -e
|
|
|
|
PR=${PR:?Variable not set}
|
|
DEPLOY_URL=${DEPLOY_URL:?Variable not set}
|
|
GITHUB_TOKEN=${GITHUB_TOKEN:?Variable not set}
|
|
|
|
curl \
|
|
-H "Authorization: token ${GITHUB_TOKEN}" \
|
|
https://api.github.com/repos/tiangolo/fastapi/issues/${PR}/comments \
|
|
-d '{"body": "📝 Docs preview: '"${DEPLOY_URL}"'"}'
|