Files
longbridge__skills/.github/workflows/notify-skill-updated.yml
Hogan a31c206ccb ci: manual workflow to trigger developers skill pack + OSS upload (#23)
## Summary

Adds a **manual** GitHub Actions workflow that dispatches a
`skill-updated` event to `longbridge/developers`, triggering skill zip
packaging and OSS upload without running the full site build.

## Trigger

`workflow_dispatch` only (manual) — no automatic push trigger.

## Inputs

| Input | Options | Default | Description |
|---|---|---|---|
| `environment` | `canary` / `release` / `both` | `canary` | OSS
environment to upload to |

## How to use

1. Go to **Actions → Notify skill updated → Run workflow**
2. Select `environment`:
   - `canary` — safe for testing, no impact on production downloads
   - `release` — production only
   - `both` — push to both (full release)

## Required secret

Add `DEVELOPERS_DISPATCH_TOKEN` to this repo's Actions secrets — a PAT
(classic) with `repo` scope on `longbridge/developers`.

## Counterpart

PR
[longbridge/developers#992](https://github.com/longbridge/developers/pull/992)
— receives the dispatch and runs pack + upload with the same environment
selector.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-14 12:02:46 +08:00

32 lines
796 B
YAML

name: Notify skill updated
on:
workflow_dispatch:
inputs:
environment:
description: 'OSS environment to upload to'
required: true
default: 'canary'
type: choice
options:
- canary
- release
- both
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Trigger developers skill pack
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.DEVELOPERS_DISPATCH_TOKEN }}
repository: longbridge/developers
event-type: skill-updated
client-payload: |
{
"sha": "${{ github.sha }}",
"ref": "${{ github.ref_name }}",
"environment": "${{ github.event.inputs.environment }}"
}