Skip to content

Commit

Permalink
feat: use git restore instead of rm
Browse files Browse the repository at this point in the history
  • Loading branch information
zugdev committed Nov 26, 2024
1 parent c74d52b commit da994a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
git checkout -b "$pr_branch"
fi
git clone https://github.com/ubiquity/ts-template template-repo
git clone https://github.com/zugdev/ts-template template-repo
# Convert WHITELIST_FILES to array
whitelist_files=()
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
for blacklisted in "${blacklist_files[@]}"; do
if [[ -e "$blacklisted" ]]; then
echo "Reverting blacklisted file or directory: $blacklisted"
git rm -rf --cached "$blacklisted" || rm -rf "$blacklisted"
git restore "$blacklisted"
fi
done
Expand Down

0 comments on commit da994a2

Please sign in to comment.