Skip to content

Create a new gistΒ #90

@willhains

Description

@willhains

Would it be possible to create a new gist, rather than update an existing one?

Something like this:

- uses: actions/checkout@v2
- name: Deploy
  id: create-gist
  uses: exuanbo/actions-deploy-gist@v1
  with:
    token: ${{ secrets.TOKEN }}
    # Omit gist_id to create a new gist
    gist_description: "foo bar"
    gist_file_name: foo.bar
    file_path: ./dist/foo.bar
- name: Generate URL
  # Use output `gist_id` to get the created gist
  run: echo "https://some.endpoint.io?gistId=${{steps.create-gist.outputs.gist_id}}.json"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions