Fix bogus templates/ self-match in delete-detection step
Provision Coder Templates / provision (push) Successful in 2m10s
Provision Coder Templates / provision (push) Successful in 2m10s
git ls-tree -d --name-only \$SHA -- templates matched the templates/ directory entry itself (basename "templates"), so every run tried and harmlessly failed to delete a nonexistent profiles-templates template. Use 'templates/*' as the pathspec to list only the child directories. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,7 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
OLD_DIRS="$(git ls-tree -d --name-only "$PREV_SHA" -- templates 2>/dev/null | xargs -n1 basename 2>/dev/null || true)"
|
||||
OLD_DIRS="$(git ls-tree -d --name-only "$PREV_SHA" -- 'templates/*' 2>/dev/null | xargs -n1 basename 2>/dev/null || true)"
|
||||
if [ -z "$OLD_DIRS" ]; then
|
||||
echo "No templates/ directory at $PREV_SHA, nothing to diff. Skipping."
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user