mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-30 09:39:20 -05:00
* 📝 Update release notes * 🔊 Make curl verbose when triggering docs preview * 🔧 Update GitHub Actions circus to use commit hash * ✨ Add PR docs preview watcher
15 lines
401 B
Bash
15 lines
401 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}
|
|
COMMIT=${COMMIT:?Variable not set}
|
|
|
|
curl \
|
|
-H "Authorization: token ${GITHUB_TOKEN}" \
|
|
https://api.github.com/repos/tiangolo/fastapi/issues/${PR}/comments \
|
|
-d '{"body": "📝 Docs preview for commit '"${COMMIT} at: ${DEPLOY_URL}"'"}'
|