Skip to content

Commit e25d3b0

Browse files
committed
ci: add workflow to publish skills to OSS
1 parent 6338df3 commit e25d3b0

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Poke the FC publish-skills flow after skills/ changes land.
2+
# The FC side reconciles this repo's skills/ directory against OSS
3+
# (bailian-wiki/skills/) using the repo HEAD snapshot as the only
4+
# source of truth — the request itself carries no content. Both the
5+
# repo and branch params are validated against FC-side whitelists
6+
# (PUBLISH_REPOS / PUBLISH_BRANCHES).
7+
#
8+
# feat/cli-skill-sync is temporary for end-to-end testing; remove it
9+
# (here and from the FC PUBLISH_BRANCHES whitelist) once the sync
10+
# link is verified on main.
11+
name: Publish skills to OSS
12+
13+
on:
14+
push:
15+
branches:
16+
- main
17+
- feat/cli-skill-sync
18+
paths:
19+
- "skills/**"
20+
21+
jobs:
22+
poke:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Trigger FC publish-skills
26+
run: |
27+
curl -sf -X POST "${{ secrets.FC_PUBLISH_TRIGGER_URL }}/publish-skills?repo=modelstudioai/cli&branch=${{ github.ref_name }}"

0 commit comments

Comments
 (0)