Skip to content

Commit

Permalink
update sed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDayIsMyEnemy committed Feb 22, 2024
1 parent b43f6de commit 328ae49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/configure-new-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: Rename files and folders
if: github.event_name == 'push' && github.event.before == '0000000000000000000000000000000000000000'
run: |
repo_name="${{ steps.set_repo_name.outputs.name }}"
find ../../ ! -path . -name '.*' -prune -o -type d -exec bash -c 'mv "{}" "$(echo "{}" | sed '\''s/BlazorTemplate/'"${repo_name}"'/g'\'')"' \;
find ../../ ! -path . -name '.*' -prune -o -type f \( -name '*.cs' -o -name '*.csproj' -o -name '*.sln' \) -exec bash -c 'mv "{}" "$(echo "{}" | sed '\''s/BlazorTemplate/'"${repo_name}"'/g'\'')"' \;
find ../../ -type f \( -name '*.razor' -o -name '*.cshtml' -o -name '*.cs' -o -name '*.csproj' -o -name '*.sln' -o -name '*.md' \) -exec sed -i '\''s/BlazorTemplate/'"${repo_name}"'/g' {} +
repo_name=${{ steps.set_repo_name.outputs.name }}
find ../../ ! -path . -name '.*' -prune -o -type d -exec bash -c 'mv "{}" "$(echo "{}" | sed "s/BlazorTemplate/$repo_name/")"' \;
find ../../ ! -path . -name '.*' -prune -o -type f \( -name '*.cs' -o -name '*.csproj' -o -name '*.sln' \) -exec bash -c 'mv "{}" "$(echo "{}" | sed "s/BlazorTemplate/$repo_name/g")"' \;
find ../../ -type f \( -name '*.razor' -o -name '*.cshtml' -o -name '*.cs' -o -name '*.csproj' -o -name '*.sln' -o -name '*.md' \) -exec sed -i "s/BlazorTemplate/$repo_name/g" {} +
rm .github/workflows/configure-new-repo.yml
- name: Create new branch
Expand All @@ -39,7 +39,7 @@ jobs:
git commit -m "Configure New Repository"
git push origin configure-new-repo
- name: Create pull request
- name: Create pull
if: github.event_name == 'push' && github.event.before == '0000000000000000000000000000000000000000'
uses: peter-evans/create-pull-request@v3
with:
Expand Down

0 comments on commit 328ae49

Please sign in to comment.