Skip to content

Roam Research backup #25779

Roam Research backup

Roam Research backup #25779

Workflow file for this run

name: "Roam Research backup"
on:
push:
branches:
- main
schedule:
# Here you can change how often your backup runs. See https://crontab.guru/examples.html
- cron: "0 * * * *"
jobs:
backup:
runs-on: ubuntu-latest
name: Backup
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
with:
repository: ${{ secrets.BACKUP_REPO }}
token: ${{ secrets.ACCESS_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Run Backup
run: |
cd /tmp
git clone -q https://github.com/everruler12/roam2github.git roam2github
cd $_
git checkout aa566bf8dbeb976d33523a6945ef0115b0deb6a1
npm i
npm run backup -s
env:
ROAM_EMAIL: ${{ secrets.ROAM_EMAIL }}
ROAM_PASSWORD: ${{ secrets.ROAM_PASSWORD }}
ROAM_GRAPH: ${{ secrets.ROAM_GRAPH }}
BACKUP_EDN: true
BACKUP_JSON: true
BACKUP_MARKDOWN: true
- name: Commit Changes
uses: everruler12/git-auto-commit-action@eda7f2633a8be768070d2742d35c8c22f22dea07
with:
commit_message: Automatic backup