roam-to-git
roam-to-git copied to clipboard
Github Actions workflow based on public repository, but committing to the private one
See start of the discussion in #4. The point is to run the WF on public repo, hence working around the limit on WFs on private repos
some relevant links:
- https://github.com/actions/checkout allows checkout of private repo
- https://github.com/marketplace/actions/git-sync-action
- https://github.com/ad-m/github-push-action
If I understand it correctly, actions/checkout would be enough:
- Create a private repository for the notes
- Create a public repository for the actions
- In the public repository, create an github action yaml, with the steps
- https://github.com/actions/checkout
-
roam-to-git notes
- In the public repository, configure the secrets
github.repository,github.tokenin addition to the Roam secrets.
I have a doubt if ssh-key is needed.
Do you agree?
you're right, that actually worked!
https://github.com/Stvad/roam-notes-workflow/blob/master/.github/workflows/run_backup.yml