Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install a package #21

Closed
geoperez opened this issue Dec 4, 2019 · 3 comments
Closed

How to install a package #21

geoperez opened this issue Dec 4, 2019 · 3 comments
Labels

Comments

@geoperez
Copy link

geoperez commented Dec 4, 2019

Maybe I'm wrong but you pass any arg to Chocolatey using this GH Action. So I'm trying to install a package passing the args install docfx.

- name: Choco install docfx
        uses: crazy-max/ghaction-chocolatey@v1
        with:
          args: install docfx

The output:

Chocolatey v0.10.15.0
Directory 'opt/chocolatey/lib' does not exist.
Could not find a command registered that meets 'install docfx'. 
 Try choco -? for command reference/help.

The same command in my local environment:

λ choco install docfx
Chocolatey v0.10.8
Chocolatey detected you are not running from an elevated command shell
 (cmd/powershell).

 You may experience errors - many functions/packages
 require admin rights. Only advanced users should run choco w/out an
 elevated shell. When you open the command shell, you should ensure
 that you do so with "Run as Administrator" selected. If you are
 attempting to use Chocolatey in a non-administrator setting, you
 must select a different location other than the default install
 location. See
 https://chocolatey.org/install#non-administrative-install for details.


 Do you want to continue?([Y]es/[N]o): Y
crazy-max added a commit that referenced this issue Dec 9, 2019
crazy-max added a commit that referenced this issue Dec 9, 2019
crazy-max added a commit that referenced this issue Dec 9, 2019
@crazy-max
Copy link
Owner

@geoperez Should be fixed with latest release, thanks for your input.

@geoperez
Copy link
Author

It's working now! Thanks!

@slonopotamus
Copy link

@crazy-max You possibly want to update README since it still suggests using v1 that doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants