Skip to content

Commit

Permalink
Update tree_sitter_maker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
garam-kim1 authored Apr 14, 2024
1 parent 1000873 commit 7be205e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/tree_sitter_maker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ jobs:
find . -type f -exec sed -i 's/python/mojo/g' {} +
find . -type f -exec sed -i 's/"py"/"mojo"/g' {} +
# First, rename files
find . -type f -name '*python*' -exec bash -c 'mv "$0" "${0//python/mojo}"' {} \;
# Then, rename directories
find /path/to/base -type d -name '*python*' -exec bash -c 'for dir; do mv "$dir" "${dir%/*}/$(basename "$dir" | sed "s/python/mojo/")"; done' bash {} +
find . -type f -name '*Python*' -exec bash -c 'mv "$0" "${0//Python/Mojo}"' {} \;
find . -type f -name '*PYTHON*' -exec bash -c 'mv "$0" "${0//PYTHON/MOJO}"' {} \;
- name: Restore backups
run: |
mkdir -p .github/workflows
Expand Down

0 comments on commit 7be205e

Please sign in to comment.