Skip to content

Instantly share code, notes, and snippets.

@doi-t
Last active July 17, 2020 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doi-t/ed2f4e47a85a503f73de8752bc230359 to your computer and use it in GitHub Desktop.
Save doi-t/ed2f4e47a85a503f73de8752bc230359 to your computer and use it in GitHub Desktop.
Run gh command on Github Actions as a manual trigger
name: gh issue view
on:
workflow_dispatch: # Manual trigger: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
inputs:
issueNumber:
description: 'Issue number'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
issueView:
name: View an issue
runs-on: ubuntu-latest # It includes gh by default: https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu2004-README.md
steps:
- name: Checkout
uses: actions/checkout@v2
- run: gh issue view ${{ github.event.inputs.issueNumber }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment