action-badges / core

Serverless badge generation with Github Actions
https://www.npmjs.com/package/@action-badges/core
MIT License
1 stars 1 forks source link

Using core params generates warning in javascript actions #10

Open chris48s opened 3 years ago

chris48s commented 3 years ago

If I make a new javascript action, a warning like

Warning: Unexpected input(s) 'file-name', 'github-token', valid inputs are ['coverage-file-name']

is shown unless I explicitly re-declare every param the core action supports (currently 8 params) in every "child" action.

This doesn't prevent those params from working, but the warning is annoying because it makes it seems like something is wrong, even though these are valid params inherited from action-badges/core and will be respected. Is there any way to work around this?

Sysix commented 9 months ago

It also shows in me IDE with github-actions extension

grafik

Is there any way to work around this?

Looks like GitHub has no use case for this. So probably auto generate the action.yml file