Skip to content

Commit

Permalink
Add Additional Flags input for action-lint action (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
yordanovsstoyan authored Sep 2, 2024
1 parent 98e77a9 commit 774ead5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions actions/action-lint/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ inputs:
description: "The action lint repository version to use."
required: false
default: "v1.6.22"

additional-flags:
description: "Additional flags for actionlint command"
required: false
default: ""
runs:
using: "composite"
steps:
Expand All @@ -27,5 +30,5 @@ runs:
- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/${{ inputs.action-lint-version }}/scripts/download-actionlint.bash)
./actionlint -color
./actionlint -color ${{ inputs.additional-flags }}
shell: bash
1 change: 1 addition & 0 deletions docs/actions/action-lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ steps:
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
| ------------------- | ------ | -------- | ----------- | ------------------------------------------ |
| action-lint-version | string | false | `"v1.6.22"` | The action lint repository version to use. |
| additional-flags | string | false | | Additional flags for actionlint command |
| ref | string | false | | The ref name to checkout the repository. |
<!-- AUTO-DOC-INPUT:END -->
Expand Down

0 comments on commit 774ead5

Please sign in to comment.