Unexpected input args
Opened this issue · 10 comments
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: ***
I have the same issue, my workflow is working fine, I have no idea how to fix this warning.
@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 }}
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
Hi @kitop, I set deploy --dir=public --prod
in args, but it also causes the same error.
@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 }}
Mhm... I think it's related to actions/runner#499 - did you start seeing this just ~18 days ago?
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.
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
Ok, seems alias
has not been deployed to npm yet
You could try actions-netlify
which uses the JS client