diff --git a/.github/workflows/rename.yml b/.github/workflows/rename.yml index a2356e2cd..148156bb0 100644 --- a/.github/workflows/rename.yml +++ b/.github/workflows/rename.yml @@ -18,19 +18,24 @@ jobs: - name: Replace instances run: | + git checkout -b temp master cp .github/files/README.rst README.rst - rm -rf docs .github .readthedocs.yml + rm -rf docs .github .readthedocs.yml tests mv discord selfcord - sed -i -e 's/import discord/import selfcord/g' -e 's/from discord/from selfcord/g' -e 's/from discord/from selfcord/g' -e 's/discord\.py-self/selfcord\.py/g' -e '/\(discord\.com\|discord\.gg\|discord\.new\)/! s/discord\./selfcord\./g' $(find selfcord examples tests -name "*.py") + sed -i -e 's/import discord/import selfcord/g' -e 's/from discord/from selfcord/g' -e 's/from discord/from selfcord/g' -e 's/discord\.py-self/selfcord\.py/g' -e '/\(discord\.com\|discord\.gg\|discord\.new\)/! s/discord\./selfcord\./g' $(find selfcord examples -name "*.py") sed -i -e 's/discord/selfcord/g' pyproject.toml MANIFEST.in sed -i -e "s/prefix = 'discord'/prefix = 'selfcord'/" setup.py + git add . + git stash + git switch renamed + git checkout stash -- . + - name: Push changes uses: actions-x/commit@v6 with: message: Synchronize selfcord branch: renamed - force: true name: github-actions[bot] email: 41898282+github-actions[bot]@users.noreply.github.com