Skip to content

Buntelrus/gist-sync-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 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/gist-sync-action@v1.0.0
        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

About

Github action to mirror a file into a gist

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 86.3%
  • Dockerfile 13.7%