You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Guru to GitHub
v1.1.1
Sync card content from a Guru collection to a GitHub repository.
Note
If you're looking to sync content from a GitHub repository to a Guru collection, check out peckjon/github-to-guru.
This action publishes a Guru collection to a directory in a GitHub repository, creating a Markdown file for each card in the collection.
Example workflow:
name: Guru to GitHub
on:
workflow_dispatch:
schedule:
# Every 6 hours
- cron: '0 */6 * * *'
jobs:
guru-to-github:
runs-on: ubuntu-latest
steps:
- uses: parkerbxyz/guru-to-github@v1
with:
guru_collection_id: '123ab'
collection_directory_path: 'collections'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GURU_USER_EMAIL: ${{ vars.GURU_USER_EMAIL }}
GURU_USER_TOKEN: ${{ secrets.GURU_USER_TOKEN }}
Cards in Guru can live in multiple folders. This action will only create a file for the first folder that the card is found in.