Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add action input for fail_on_error #107

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ description: 'All-in-one action to manage labels in PRs and Issues based on many
author: 'Galo Navarro <anglorvaroa@gmail.com>'
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'
Expand Down
2 changes: 1 addition & 1 deletion cmd/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading