Skip to content

Popsiclestick/gist-sync-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gist-sync-action

Github action to mirror a file into a Gist

Setup

  1. Create a new public Gist (https://gist.github.com)
  2. Create a token with the gist scope (https://github.com/settings/tokens/new)
  3. Create the file you'll be syncing to your Gist

Usage

on: [push]

jobs:
  gist-sync:
    name: gist-sync
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - uses: popsiclestick/[email protected]
        id: sync
        with:
          auth: ${{ secrets.GIST_TOKEN }}
          gist_url: https://gist.github.com/<USER_NAME>/<GIST_ID>
          gist_title: Example Gist Title
          gist_description: Example Gist Description
          github_file: filename-to-sync