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

Unexpected input args #32

Open
Sceat opened this issue May 19, 2020 · 10 comments
Open

Unexpected input args #32

Sceat opened this issue May 19, 2020 · 10 comments

Comments

@Sceat
Copy link

Sceat commented May 19, 2020

When using the cli i get an error

##[warning]Unexpected input 'args', valid inputs are ['']
Run netlify/actions/cli@master
  with:
    args: deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --message "Publishing app" --prod
  env:
    NETLIFY_SITE_ID: ***
    NETLIFY_AUTH_TOKEN: ***
@lewis-geek
Copy link

I have the same issue, my workflow is working fine, I have no idea how to fix this warning.

@Sceat
Copy link
Author

Sceat commented May 24, 2020

@lewis-geek in the mean time i just use the base cli

- name: publish to netlify
  run: npx netlify-cli deploy --dir dist --site ${{ env.NETLIFY_SITE_ID }} --auth ${{ env.NETLIFY_AUTH_TOKEN }} --message "Publishing app" --prod
  env:
    NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
    NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

@kitop
Copy link
Contributor

kitop commented Jun 6, 2020

If you set NETLIFY_SITE_ID and NETLIFY_AUTH_TOKEN in ENV there's no need to pass them as flag arguments.
Are you passing them for any particular reason? Would like to know if it warns without --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN part

@lewis-geek
Copy link

Hi @kitop, I set deploy --dir=public --prod in args, but it also causes the same error.

@praisegeek
Copy link

@lewis-geek Did you try checking the indentations accordingly ?

 - name: Deploy to netlify
        uses: netlify/actions/cli@master
        with:
          args: deploy --dir=public --prod --functions=functions
        env:
          NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
          NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

@kitop
Copy link
Contributor

kitop commented Jun 6, 2020

Mhm... I think it's related to actions/runner#499 - did you start seeing this just ~18 days ago?

@lewis-geek
Copy link

Hi @Sceat
it works fine now on my side, no error anymore, it seems like someone fixed this issue, maybe you can close this issue.

@Sceat
Copy link
Author

Sceat commented Jun 9, 2020

Indeed seems to work!
actually there may a loosely related problem

with:
    args: deploy --dir=dist --alias=edge --message='Publishing edge'

alias is not an expected arguments even through netlify/cli#943 has been merged for netlify/cli#275

--message='Publishing edge' only works with singles quotes, i wonder how we could pass variables if double quotes throw an unexpected argument

@Sceat
Copy link
Author

Sceat commented Jun 12, 2020

Ok, seems alias has not been deployed to npm yet

@rajington
Copy link

You could try actions-netlify which uses the JS client

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

No branches or pull requests

5 participants