diff --git a/actions/action-lint/action.yaml b/actions/action-lint/action.yaml index 87e1482d9..365aaef2a 100644 --- a/actions/action-lint/action.yaml +++ b/actions/action-lint/action.yaml @@ -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: @@ -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 diff --git a/docs/actions/action-lint/README.md b/docs/actions/action-lint/README.md index 77283d24d..b9bd0fba9 100644 --- a/docs/actions/action-lint/README.md +++ b/docs/actions/action-lint/README.md @@ -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. |