Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd docs on how to run from Github Actions CI/CD Workflow #1540
Labels
Comments
|
Update: Installing works with the below but it fails to authenticate, prompting for a GUI-based URL MFA.
Failure log:
|
|
Any plans to do something like https://github.com/marketplace/actions/setup-hub? |
|
@aaronsteers GitHub CLI is pre-installed in Actions runners. To use it: - uses: actions/checkout@v2
- name: GitHub CLI example
run: gh issue list
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}I understand that this has to be better documented; I'll add a label as a TODO item for us. Thanks for your ask! |
|
@mislav - Awesome. That's a big help. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature or problem you’d like to solve
I'd like to be able to run
ghcli from within a github action. The only install action I see is to manually download on the linux-based github runner (container) is to curl a hard-coded url, which will be immediately stale and will need it's version updated periodically. Is this the best way? Is it already installed on github runners? Some documentation here would be extremely helpful. Thanks!Proposed solution
Documentation on the recommended way to run within github actions would be much appreciated.
Additional context
I've searched google and the available repo docs and github docs to no avail.