mirror of
https://github.com/h3pdesign/Neon-Vision-Editor
synced 2026-04-21 13:27:16 +00:00
31 lines
839 B
YAML
31 lines
839 B
YAML
name: Notify docs repo on release
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
notify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dispatch docs sync
|
|
env:
|
|
DOCS_REPO_PAT: ${{ secrets.DOCS_REPO_PAT }}
|
|
TAP_BOT_TOKEN: ${{ secrets.TAP_BOT_TOKEN }}
|
|
run: |
|
|
TOKEN="$DOCS_REPO_PAT"
|
|
if [ -z "$TOKEN" ]; then
|
|
TOKEN="$TAP_BOT_TOKEN"
|
|
fi
|
|
|
|
if [ -z "$TOKEN" ]; then
|
|
echo "Missing token. Set DOCS_REPO_PAT or TAP_BOT_TOKEN in Neon-Vision-Editor secrets."
|
|
exit 1
|
|
fi
|
|
|
|
gh api repos/h3pdesign/appsh3p/dispatches \
|
|
-H "Authorization: Bearer $TOKEN" \
|
|
-f event_type='neon_release_published' \
|
|
-f client_payload='{"app":"neon","repo":"h3pdesign/Neon-Vision-Editor"}'
|