Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
copy

GitHub Action

Guru to GitHub

v1.1.1

Guru to GitHub

copy

Guru to GitHub

Sync content from Guru to GitHub

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Guru to GitHub

uses: parkerbxyz/[email protected]

Learn more about this action in parkerbxyz/guru-to-github

Choose a version

Guru to GitHub

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.

Usage

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 }}

Limitations

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.