Skip to content

Commit

Permalink
feat(lua-lint): add an option to make the action fail if the linting …
Browse files Browse the repository at this point in the history
…fails (#121)

* feat(lua-lint): add an option to make the action fail if the linting fails

* fixup! feat(lua-lint): add an option to make the action fail if the linting fails

* fixup! feat(lua-lint): add an option to make the action fail if the linting fails
  • Loading branch information
ADD-SP committed May 7, 2024
1 parent 207f059 commit a98be01
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code-check-actions/lua-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: 'List of files, directories and rockspecs to check'
required: false
default: '.' # Scans workspace dir
action_fail:
description: 'Action itself will fail if linting fails'
required: false
default: false

runs:
using: composite
Expand Down Expand Up @@ -48,7 +52,7 @@ runs:
luacheck_${{github.sha}}.xml
check_name: Luacheck Report
comment_mode: always
action_fail: false
fail_on: 'nothing' # Explicitly don't fail reporting check based on test results

action_fail: ${{ inputs.action_fail }}
# Explicitly don't fail reporting check based on test results if `inputs.action_fail` is `false`.
fail_on: ${{ inputs.action_fail && 'test failures' || 'nothing' }}

0 comments on commit a98be01

Please sign in to comment.