Skip to content

Commit

Permalink
ci(sync): Add sync workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
syfxlin committed Jan 19, 2024
1 parent 88035c6 commit 5cc04bd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Sync Repo
on:
workflow_dispatch:
jobs:
sync:
name: Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sync
run: |
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

0 comments on commit 5cc04bd

Please sign in to comment.