From 437a2c7f1911597182588b214bd4d4df534626c9 Mon Sep 17 00:00:00 2001 From: playbook-bot Date: Thu, 22 Jan 2026 14:47:12 +0800 Subject: [PATCH] :wrench: chore(ci): trigger superpowers sync --- .gitea/workflows/trigger-superpowers-sync.yml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/trigger-superpowers-sync.yml diff --git a/.gitea/workflows/trigger-superpowers-sync.yml b/.gitea/workflows/trigger-superpowers-sync.yml new file mode 100644 index 0000000..a36899f --- /dev/null +++ b/.gitea/workflows/trigger-superpowers-sync.yml @@ -0,0 +1,38 @@ +name: Trigger Superpowers Sync + +on: + push: + branches: + - thirdparty/skill + workflow_dispatch: + +concurrency: + group: superpowers-trigger-${{ github.repository }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + trigger: + name: Dispatch main workflow + runs-on: ubuntu-22.04 + + steps: + - name: Dispatch sync workflow on main + shell: bash + run: | + set -euo pipefail + + TOKEN="${{ secrets.WORKFLOW }}" + if [ -z "$TOKEN" ]; then + echo "ERROR: WORKFLOW secret is required" >&2 + exit 1 + fi + + API_BASE="${GITHUB_API_URL:-${GITHUB_SERVER_URL}/api/v1}" + WORKFLOW_FILE="sync-superpowers.yml" + API="${API_BASE}/repos/${GITHUB_REPOSITORY}/actions/workflows/${WORKFLOW_FILE}/dispatches" + + curl -sSf -X POST \ + -H "Authorization: token ${TOKEN}" \ + -H "Content-Type: application/json" \ + -d '{"ref":"main"}' \ + "$API"