Roam Research backup #41568
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |