Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.33 KB

README.md

File metadata and controls

57 lines (42 loc) · 1.33 KB

List gist commits

Table of contents

  1. Docs
  2. Quick start
  3. Inputs
  4. Outputs

Docs

Original documentation: https://developer.github.com/v3/gists/#list-gist-commits

Quick start

- uses: maxkomarychev/octions/octions/gists/list-commits@master
  id: my_step_id
  with:
    token: <token value>
    gist_id: <gist_id value>
    per_page: <per_page value>
    page: <page value>
- name: Print outputs
  run: |
    echo ${{ steps.my_step_id.outputs.id }}
    echo ${{ steps.my_step_id.outputs.number }}
    echo ${{ steps.my_step_id.outputs.status }}

Inputs

Name Is required Description
token true Token to authenticate the request
gist_id true gist_id parameter
per_page true Results per page (max 100)
page true Page number of the results to fetch.
file_output false Path to store full output of the action
custom_outputs false Custom outputs to create for step. This has to be YAML multiline string literal custom_outputs: |<newline> output_name:path.in.result

Outputs

Name Description
id id field of the response (if exists)
number number field of the response (if exists)
status HTTP status of underlying API call