From e25d3b0b8e413143784bb786d871a83bb1fbd9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=85=E7=92=83?= Date: Fri, 7 Aug 2026 14:13:47 +0800 Subject: [PATCH] ci: add workflow to publish skills to OSS --- .github/workflows/publish-skills.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish-skills.yml diff --git a/.github/workflows/publish-skills.yml b/.github/workflows/publish-skills.yml new file mode 100644 index 0000000..775b7c3 --- /dev/null +++ b/.github/workflows/publish-skills.yml @@ -0,0 +1,27 @@ +# Poke the FC publish-skills flow after skills/ changes land. +# The FC side reconciles this repo's skills/ directory against OSS +# (bailian-wiki/skills/) using the repo HEAD snapshot as the only +# source of truth — the request itself carries no content. Both the +# repo and branch params are validated against FC-side whitelists +# (PUBLISH_REPOS / PUBLISH_BRANCHES). +# +# feat/cli-skill-sync is temporary for end-to-end testing; remove it +# (here and from the FC PUBLISH_BRANCHES whitelist) once the sync +# link is verified on main. +name: Publish skills to OSS + +on: + push: + branches: + - main + - feat/cli-skill-sync + paths: + - "skills/**" + +jobs: + poke: + runs-on: ubuntu-latest + steps: + - name: Trigger FC publish-skills + run: | + curl -sf -X POST "${{ secrets.FC_PUBLISH_TRIGGER_URL }}/publish-skills?repo=modelstudioai/cli&branch=${{ github.ref_name }}"