actions / labeler

An action for automatically labelling pull requests
MIT License
1.99k stars 419 forks source link

sync-labels is (but shouldn't be) mandatory for jobs #686

Closed dfandrich closed 1 year ago

dfandrich commented 1 year ago

There seems to be a different bug with sync-labels in the v5.0.0-beta.1 release. When not explicitly setting sync-labels in the GHA job file, the job errors out with

TypeError: Input does not meet YAML 1.2 "Core Schema" specification: sync-labels Support boolean input list: `true | True | TRUE | false | False | FALSE`

There needs to be an explicit sync-labels: false in the workflow file to avoid this; it can't be left out to rely on the default false value.

Originally posted by @dfandrich in https://github.com/actions/labeler/issues/575#issuecomment-1729100456

MaksimZhukov commented 1 year ago

Hello @dfandrich! I could not reproduce your issue, everything works without any error. Here is my workflow file and workflow run. Could you please provide us with a link to the public repository where the issue occurs?

dfandrich commented 1 year ago

Here is an example.

MaksimZhukov commented 1 year ago

I have forked the repository and have not encountered any problems: workflow file and workflow run.

Could you please update your workflow and re-run the build? I think it should work. By the way, the dot input is not yet available in the beta version, unfortunately.

dfandrich commented 1 year ago

Strange—it now works when I remove it. I wonder what happened in those failing runs? I'll close this then.