diff --git a/action.yml b/action.yml index 1b14a36..4702eb9 100644 --- a/action.yml +++ b/action.yml @@ -3,11 +3,14 @@ description: 'All-in-one action to manage labels in PRs and Issues based on many author: 'Galo Navarro ' inputs: config_path: - description: 'Path for labeling rules' default: '.github/labeler.yml' + description: 'Path for labeling rules' use_local_config: + default: 'false' description: 'By default the action will use the configuration file set in the default branch of the repository. When set to true, the action will instead use the configuration found in the local checkout of the repository.' + fail_on_error: default: 'false' + description: 'By default the action will never fail when an error is found during the evaluation of the labels. This is done in order to avoid disrupting CI pipelines with non-critical tasks. To override this behaviour, set this property to `true` so that any error in the evaluation of labels causes a failure of the workflow.' runs: using: 'docker' image: 'Dockerfile' diff --git a/cmd/action.go b/cmd/action.go index cbc2bf0..97a1c66 100644 --- a/cmd/action.go +++ b/cmd/action.go @@ -17,7 +17,7 @@ import ( func main() { // Determine if we want the action to fail on error, or be silent to - // prevent blocking Ci pipelines + // prevent blocking CI pipelines failCode := 0 failOnError, err := strconv.ParseBool(os.Getenv("INPUT_FAIL_ON_ERROR")) if err != nil {