Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit 59d47ff

Browse files
authored
ci: notify platform monorepo on push to main
Merge pull request #34 from evalops/codex/siphon-platform-notify
1 parent 3695a93 commit 59d47ff

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Notify Platform Monorepo
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
dispatch:
12+
runs-on: blacksmith-4vcpu-ubuntu-2404
13+
steps:
14+
- name: Dispatch sync to platform
15+
env:
16+
GH_TOKEN: ${{ secrets.ADMIN_CONTROL_PLANE_SYNC_TOKEN || secrets.GH_BOT_TOKEN || secrets.PAT }}
17+
run: |
18+
if [[ -z "${GH_TOKEN}" ]]; then
19+
echo "::error::No cross-repo token configured. Set ADMIN_CONTROL_PLANE_SYNC_TOKEN, GH_BOT_TOKEN, or PAT in repo secrets."
20+
exit 1
21+
fi
22+
service="${GITHUB_REPOSITORY#*/}"
23+
gh api repos/evalops/platform/dispatches \
24+
-X POST \
25+
-f event_type="upstream-service-push" \
26+
-f "client_payload[service]=${service}" \
27+
-f "client_payload[source_sha]=${GITHUB_SHA}" \
28+
-f "client_payload[source_ref]=${GITHUB_REF_NAME}"

0 commit comments

Comments
 (0)