🐛 fix(ci): prevent stale superpowers sync from restoring skills block
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m17s
Update Third-party Superpowers / Update thirdparty/skill snapshot (push) Successful in 1m17s
remove the stale superpowers list block from SKILLS.md so the document routes to the source list only. clear assume-unchanged and skip-worktree flags in the sync workflow before refreshing the workspace, and add a regression test for that safeguard.
This commit is contained in:
@@ -38,6 +38,11 @@ jobs:
|
||||
if [ -d "$REPO_DIR" ]; then
|
||||
if [ -d "$REPO_DIR/.git" ]; then
|
||||
cd "$REPO_DIR"
|
||||
# Clear local index flags so checked-out workflow/script files
|
||||
# always refresh from the latest main branch contents.
|
||||
git ls-files -v | awk '/^[a-zS] / {sub(/^[a-zS] /, ""); print}' | while IFS= read -r path; do
|
||||
git update-index --no-assume-unchanged --no-skip-worktree -- "$path"
|
||||
done
|
||||
git clean -fdx
|
||||
git reset --hard
|
||||
git fetch --all --tags --force --prune --prune-tags
|
||||
|
||||
Reference in New Issue
Block a user