Skip to content

Routes Upd 2/9/2025, 10:52:00 AM #1337

Routes Upd 2/9/2025, 10:52:00 AM

Routes Upd 2/9/2025, 10:52:00 AM #1337

Workflow file for this run

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="no-reply@no-reply.com" 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="no-reply@no-reply.com" commit -o ./docs/CNAME -m "change CNAME domain (bot)"
git push --progress --force --all mirror-remoteghp