🐛 fix(ci): use literal superpowers sync paths
Update and Sync Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m28s Details
Update and Sync Superpowers / Sync skills to main (push) Has been skipped Details

This commit is contained in:
csh 2026-03-19 13:39:27 +08:00
parent 48f6de8410
commit 34632234c8
2 changed files with 9 additions and 2 deletions

View File

@ -94,8 +94,8 @@ jobs:
env:
TARGET_BRANCH: "main"
SUPERPOWERS_BRANCH: "${{ env.THIRDPARTY_BRANCH }}"
SUPERPOWERS_DIR: "${{ env.SUPERPOWERS_DIR }}"
SUPERPOWERS_LIST: "${{ env.SUPERPOWERS_LIST }}"
SUPERPOWERS_DIR: "superpowers"
SUPERPOWERS_LIST: "codex/skills/.sources/superpowers.list"
steps:
- name: Prepare repo

View File

@ -49,6 +49,13 @@ class SuperpowersWorkflowTests(unittest.TestCase):
self.assertIn('git fetch origin "$TARGET_BRANCH"', text)
self.assertIn('git checkout -B "$TARGET_BRANCH" "origin/$TARGET_BRANCH"', text)
def test_auto_update_workflow_sync_job_uses_literal_superpowers_paths(self):
text = AUTO_UPDATE_WORKFLOW.read_text(encoding="utf-8")
self.assertIn('SUPERPOWERS_DIR: "superpowers"', text)
self.assertIn('SUPERPOWERS_LIST: "codex/skills/.sources/superpowers.list"', text)
self.assertNotIn('SUPERPOWERS_DIR: "${{ env.SUPERPOWERS_DIR }}"', text)
self.assertNotIn('SUPERPOWERS_LIST: "${{ env.SUPERPOWERS_LIST }}"', text)
def test_auto_update_script_targets_thirdparty_branch(self):
text = AUTO_UPDATE_SCRIPT.read_text(encoding="utf-8")
self.assertIn('TARGET_BRANCH="${TARGET_BRANCH:-thirdparty/skill}"', text)