-
Notifications
You must be signed in to change notification settings - Fork 2
23 lines (23 loc) · 896 Bytes
/
sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Sync Repo
on:
workflow_dispatch:
jobs:
sync:
name: Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sync
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
cd .. && git clone https://github.com/syfxlin/blog.git && cd blog
rm -rf depker.config.ts
rm -rf .git && cp -rf ../next-theme-coline/.git .
rm -rf .github && cp -rf ../next-theme-coline/.github .
rm -rf public && cp -rf ../next-theme-coline/public .
rm -rf README.md && cp -rf ../next-theme-coline/README.md .
git add --force --ignore-errors .
git commit -m "chore(sync): Sync blog source code to next-theme-coline"
git push --force