Github action to mirror a file into a Gist
- Create a new public Gist (https://gist.github.com)
- Create a token with the
gist
scope (https://github.com/settings/tokens/new) - Create the file you'll be syncing to your Gist
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