Files
modelstudioai__skills/.github/workflows/publish-skills.yml
T
gujieye 7b49d71665 chore: update bailian-docs-llm-wiki (2026-07-29) (#56)
* chore: update bailian-docs-llm-wiki (2026-07-15)

* chore: update bailian-docs-llm-wiki (2026-07-15)

* chore: update bailian-docs-llm-wiki (2026-07-23)

* Add GitHub Actions workflow for skill publishing

* Update publish-skills workflow branch to feat/bailian-docs-update

Change the branch for triggering the publish-skills workflow.

* feat: trigger git action

* chore: update bailian-docs-llm-wiki (2026-07-24)

* chore: update bailian-docs-llm-wiki (2026-07-24)

* chore: update bailian-docs-llm-wiki (2026-07-25)

* chore: update bailian-docs-llm-wiki (2026-07-26)

* chore: update bailian-docs-llm-wiki (2026-07-27)

* chore: optimize workflow - auto PR & merge to main, remove Chinese comments

* chore: update bailian-docs-llm-wiki (2026-07-29)

* feat: update publish.yml

* feat: update workflow

* chore: update bailian-docs-llm-wiki (2026-07-29)

* ci: sync main back into branch before PR and fix PR number parsing

* ci: use REST API to update PR title (repo scope only)

---------

Co-authored-by: bailian-bot <bailian-bot@alibaba-inc.com>
2026-07-29 15:56:20 +08:00

39 lines
1.3 KiB
YAML

name: publish-skills
# Fires on pushes to main (including auto-merged PRs from
# feat/bailian-docs-update) and pokes the remote FC publisher,
# which syncs main -> OSS on its own (not part of this repo).
on:
push:
branches: [main]
paths: ['skills/**']
permissions:
contents: read
concurrency:
group: publish-skills
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Poke FC publisher (publish-skills)
run: |
# FC uses reconciliation-based publishing: request body is not trusted.
# curl -f only catches HTTP errors; FC returns 200 + success:false on
# business failure, so we also parse the response body to surface it.
RESP=$(curl -fsS --retry 3 --retry-delay 5 -X POST \
"${{ vars.FC_TRIGGER_URL }}/publish-skills")
echo "$RESP" | jq .
if [ "$(echo "$RESP" | jq -r '.success')" != "true" ]; then
echo "::error::publish-skills failed: $(echo "$RESP" | jq -r '.error // "unknown"')"
exit 1
fi
echo "### publish-skills result" >> "$GITHUB_STEP_SUMMARY"
echo '```json' >> "$GITHUB_STEP_SUMMARY"
echo "$RESP" | jq '{upserted, deleted, unchanged: (.unchanged | length), durationMs}' >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"