Last active
July 17, 2020 09:40
-
-
Save doi-t/ed2f4e47a85a503f73de8752bc230359 to your computer and use it in GitHub Desktop.
Run gh command on Github Actions as a manual trigger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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