-
Notifications
You must be signed in to change notification settings - Fork 25
35 lines (31 loc) · 976 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "Roam Research backup"
on:
push:
branches:
- master
schedule:
- cron: "0 * * * *"
jobs:
backup:
runs-on: "Ubuntu-20.04"
name: Backup
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Setup dependencies
run: |
pip install git+https://github.com/MatthieuBizien/roam-to-git.git@master
- name: Run backup
run: roam-to-git --skip-git . --formats json markdown formatted edn
env:
ROAMRESEARCH_USER: ${{ secrets.ROAMRESEARCH_USER }}
ROAMRESEARCH_PASSWORD: ${{ secrets.ROAMRESEARCH_PASSWORD }}
ROAMRESEARCH_DATABASE: ${{ secrets.ROAMRESEARCH_DATABASE }}
- name: Commit changes
uses: elstudio/actions-js-build/commit@v4
with:
commitMessage: Automated snapshot