Routes Upd 11/1/2024, 5:28:03 PM #1068
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sync tinymta to tinymta_com | |
on: push | |
jobs: | |
my-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: sync tinymta.us.to to tinymta.com | |
run: | | |
git clone -n --filter=tree:0 "https://github.com/bulk88/tinymta.git" | |
cd tinymta | |
git remote add -f mirror-remote "https://${{secrets.TINYMTACOM_PAT}}@github.com/bulk88/tinymta_com.git" | |
git checkout master docs/CNAME ; git checkout master docs/CNAME | |
sed -i 's/tinymta\.us\.to/tinymta.com/g' ./docs/CNAME | |
git add ./docs/CNAME | |
git -c user.name="Domain Change Bot" -c user.email="[email protected]" commit -o ./docs/CNAME -m "change CNAME domain (bot)" | |
git push --progress --force --all mirror-remote | |
git reset --soft HEAD~1 | |
git remote add -f mirror-remoteghp "https://${{secrets.TINYMTACOM_PAT}}@github.com/bulk88/tinymta_ghp.git" | |
git checkout master docs/CNAME ; git checkout master docs/CNAME | |
sed -i 's/tinymta\.us\.to/gh.tinymta.us.to/g' ./docs/CNAME | |
git add ./docs/CNAME | |
git -c user.name="Domain Change Bot" -c user.email="[email protected]" commit -o ./docs/CNAME -m "change CNAME domain (bot)" | |
git push --progress --force --all mirror-remoteghp |