We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cccdb99 commit 4ab9488Copy full SHA for 4ab9488
.github/workflows/sync.yaml
@@ -0,0 +1,32 @@
1
+name: Auto Sync
2
+
3
+on:
4
+ schedule:
5
+ - cron: '0 0 * * *' # At 00:00. https://crontab.guru/
6
+ workflow_dispatch: # on button click
7
8
+jobs:
9
+ sync:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write # 'write' access to repository contents
13
+ steps:
14
+ - name: Install git-filter-repo
15
+ run: |
16
+ sudo apt-get update
17
+ sudo apt-get install -y git-filter-repo
18
19
+ - name: Checkout upstram
20
+ uses: actions/checkout@v2
21
+ with:
22
+ repository: slidevjs/slidev
23
+ fetch-depth: 0
24
25
+ - name: Extract docs
26
+ run: git filter-repo --subdirectory-filter docs --force
27
28
+ - name: Push changes
29
+ uses: ad-m/[email protected]
30
31
+ github_token: ${{ secrets.GITHUB_TOKEN }}
32
+ branch: refs/heads/upstream
0 commit comments