From 34632234c8d3c61e0e9eb980aa8e5bfeea19c0e6 Mon Sep 17 00:00:00 2001 From: csh Date: Thu, 19 Mar 2026 13:39:27 +0800 Subject: [PATCH] :bug: fix(ci): use literal superpowers sync paths --- .gitea/workflows/update-thirdparty-superpowers.yml | 4 ++-- tests/test_superpowers_workflows.py | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/update-thirdparty-superpowers.yml b/.gitea/workflows/update-thirdparty-superpowers.yml index 76ad534..a642cc1 100644 --- a/.gitea/workflows/update-thirdparty-superpowers.yml +++ b/.gitea/workflows/update-thirdparty-superpowers.yml @@ -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 diff --git a/tests/test_superpowers_workflows.py b/tests/test_superpowers_workflows.py index 8c02bfb..1e91701 100644 --- a/tests/test_superpowers_workflows.py +++ b/tests/test_superpowers_workflows.py @@ -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)