You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
name: rename
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- name: Replace instances
|
|
run: |
|
|
cp .github/files/README.rst README.rst
|
|
rm -rf docs .github .readthedocs.yml
|
|
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/discord/selfcord/g' pyproject.toml MANIFEST.in
|
|
sed -i -e "s/prefix = 'discord'/prefix = 'selfcord'/" setup.py
|
|
|
|
- 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
|
|
|