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

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
+7
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)