set-env icon indicating copy to clipboard operation
set-env copied to clipboard

Getting a "warning" related to overwrite parameter

Open pauldps opened this issue 5 years ago • 6 comments

##[warning]Unexpected input 'YT_API_KEY', valid inputs are ['overwrite']
Run allenevans/[email protected]
  with:
    YT_API_KEY: ***
    overwrite: true
  env:
    PATH: /home/runner/.rubies/ruby-

YT_API_KEY is an env variable I'm trying to set. The relevant part of my workflow file:

    - name: Set environment variables
      uses: allenevans/[email protected]
      with:
        YT_API_KEY: ${{ secrets.YT_API_KEY }}

If I add overwrite to my workflow file, the warning persists:

##[warning]Unexpected input 'YT_API_KEY', valid inputs are ['overwrite']
Run allenevans/[email protected]
  with:
    overwrite: true
    YT_API_KEY: ***
  env:
    PATH: /home/runner/.rubies/ruby-

Functionality doesn't seem to be affected, as the env var seems to be correctly set for the next steps.

pauldps avatar May 30 '20 19:05 pauldps

This looks like it could be related to this change in the actions runner repo. https://github.com/actions/runner/pull/429

allenevans avatar Jun 01 '20 21:06 allenevans

I'm getting the same type of warning.

Example of the warning

/Anders

andersc avatar Jul 07 '20 12:07 andersc

Related: https://github.com/actions/runner/issues/514

falkenhawk avatar Jul 15 '20 11:07 falkenhawk

It works. But I get a similar warning:

Warning: Unexpected input(s) 'CC', 'CXX', 'npm_config_clang', valid inputs are ['']

aminya avatar Nov 12 '20 07:11 aminya

Working but throwing Warning: Unexpected input(s) 'ENV_NAME', valid inputs are ['']

AntonioStipic avatar Nov 29 '20 15:11 AntonioStipic

There's very little I can do about this warning at the moment. I have added another comment to https://github.com/actions/runner/issues/514. Hopefully someone will take notice of it.

allenevans avatar Nov 29 '20 16:11 allenevans