|
|
@ -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 |
|
|
|