Skip to content

andymckay/get-gist-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

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This Action gets a Gist off of GitHub and writes it out to a file. It requires that the gist only contains one and only one file.

Inputs:

  • gistURL: The URL to the Gist.

Outputs:

  • file: The file the Gist has been written too.

Example:

This gets a private Gist and outputs the contents of the Gist from the file

name: CI
on: [repository_dispatch]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Get Gist
      id: get
      uses: andymckay/get-gist-action@master
      with:
        gistURL: "https://gist.github.com/andymckay/c290f9c904502e98da98e59124610b93" 
    - name: Show Gist contents
      id: run
      run: |
        cat ${{ steps.get.outputs.file }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published