Skip to content

Github action to mirror a file into a gist

Notifications You must be signed in to change notification settings

andreygolik/gist-sync-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 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

About

Github action to mirror a file into a gist

Topics

Resources

Stars

Watchers

Forks

Languages

  • Shell 89.0%
  • Dockerfile 11.0%