🔧 chore(thirdparty): generalize skills sync pipeline
replace the superpowers-only workflow with a manifest-driven pipeline sync ui-ux-pro-max into codex/skills and document source lists fix the prettier path test so the Python suite passes on Windows
This commit is contained in:
+12
-11
@@ -1,4 +1,4 @@
|
||||
name: 🪄 Update and Sync Superpowers
|
||||
name: 🪄 Update Third-Party Skills
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -8,13 +8,14 @@ on:
|
||||
schedule:
|
||||
- cron: "@daily"
|
||||
|
||||
concurrency:
|
||||
group: update-thirdparty-${{ github.repository }}
|
||||
cancel-in-progress: false
|
||||
|
||||
env:
|
||||
WORKSPACE_DIR: "/home/workspace"
|
||||
THIRDPARTY_BRANCH: "thirdparty/skill"
|
||||
UPSTREAM_REPO: "https://github.com/obra/superpowers.git"
|
||||
UPSTREAM_REF: "main"
|
||||
SUPERPOWERS_DIR: "superpowers"
|
||||
SUPERPOWERS_LIST: "codex/skills/.sources/superpowers.list"
|
||||
MANIFEST_PATH: ".gitea/ci/thirdparty_skills.json"
|
||||
|
||||
jobs:
|
||||
update_and_sync:
|
||||
@@ -73,7 +74,7 @@ jobs:
|
||||
cd "$REPO_DIR"
|
||||
|
||||
echo "========================================"
|
||||
echo "📦 Refresh thirdparty/skill snapshot"
|
||||
echo "📦 Refresh thirdparty/skill snapshots"
|
||||
echo "========================================"
|
||||
|
||||
before_ref=""
|
||||
@@ -84,7 +85,8 @@ jobs:
|
||||
echo "📌 Previous $THIRDPARTY_BRANCH: <missing>"
|
||||
fi
|
||||
|
||||
TARGET_BRANCH="$THIRDPARTY_BRANCH" bash .gitea/ci/update_thirdparty_superpowers.sh
|
||||
export MANIFEST_PATH="$MANIFEST_PATH"
|
||||
TARGET_BRANCH="$THIRDPARTY_BRANCH" bash .gitea/ci/update_thirdparty_skills.sh
|
||||
|
||||
git fetch origin "$THIRDPARTY_BRANCH"
|
||||
after_ref="$(git rev-parse "origin/$THIRDPARTY_BRANCH")"
|
||||
@@ -103,9 +105,8 @@ jobs:
|
||||
git checkout -B main origin/main
|
||||
|
||||
TARGET_BRANCH="main" \
|
||||
SUPERPOWERS_BRANCH="$THIRDPARTY_BRANCH" \
|
||||
SUPERPOWERS_DIR="$SUPERPOWERS_DIR" \
|
||||
SUPERPOWERS_LIST="$SUPERPOWERS_LIST" \
|
||||
bash .gitea/ci/sync_superpowers.sh
|
||||
THIRDPARTY_BRANCH="$THIRDPARTY_BRANCH" \
|
||||
MANIFEST_PATH="$MANIFEST_PATH" \
|
||||
bash .gitea/ci/sync_thirdparty_skills.sh
|
||||
|
||||
echo "🎉 Update and sync finished."
|
||||
Reference in New Issue
Block a user