File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Roam Research backup"
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ schedule :
8
+ # Here you can change how often your backup runs. See https://crontab.guru/examples.html
9
+ - cron : " 0 * * * *"
10
+
11
+ jobs :
12
+ backup :
13
+ runs-on : ubuntu-latest
14
+ name : Backup
15
+ timeout-minutes : 10
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ with :
19
+ repository : ${{ secrets.BACKUP_REPO }}
20
+ token : ${{ secrets.ACCESS_TOKEN }}
21
+
22
+ - name : Setup Node
23
+ uses : actions/setup-node@v2
24
+ with :
25
+ node-version : ' 14'
26
+
27
+ - name : Run Backup
28
+ run : |
29
+ cd /tmp
30
+ git clone -q https://github.com/everruler12/roam2github.git roam2github
31
+ cd $_
32
+ npm i
33
+ npm run backup -s
34
+ env :
35
+ ROAM_EMAIL : ${{ secrets.ROAM_EMAIL }}
36
+ ROAM_PASSWORD : ${{ secrets.ROAM_PASSWORD }}
37
+ ROAM_GRAPH : ${{ secrets.ROAM_GRAPH }}
38
+ BACKUP_EDN : true
39
+ BACKUP_JSON : true
40
+ BACKUP_MARKDOWN : true
41
+
42
+ - name : Commit Changes
43
+ uses : everruler12/git-auto-commit-action@latest
44
+ with :
45
+ commit_message : Automatic backup
You can’t perform that action at this time.
0 commit comments