Skip to content
Open
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
args: ""
gh_action_ref: "<version - e.g. `v25.5.0`>" # Not recommended for non-composite action use
setup_python: "true"
python_version: "3.14"
working_directory: ""
requirements_file: ""
```
Expand All @@ -50,6 +51,7 @@ All the arguments are optional:
- `requirements_file`: Path to the requirements.yml file to install role and
collection dependencies.
- `setup_python`: If python should be installed. Default is `true`.
- `python_version`: The version of python to install. Default is `3.14`.
- `working_directory`: The directory where to run ansible-lint from. Default is
`github.workspace`. Needed if you want to lint only a subset of
your repository.
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
description: If false, this action will not setup python and will instead rely on the already installed python.
required: false
default: "true"
python_version:
description: The version of Python to use when setting up Python environment. Default is 3.14.
required: false
default: "3.14"
working_directory:
description: The directory where to run ansible-lint from. Default is `github.workspace`.
required: false
Expand Down Expand Up @@ -81,7 +85,7 @@ runs:
with:
cache: pip
cache-dependency-path: ${{ steps.get_reqs.outputs.reqs_file }}
python-version: "3.14"
python-version: ${{ inputs.python_version }}

- name: Install ansible-lint
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions docs/installing.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
with:
args: ""
setup_python: "true"
python_version: "3.14"
working_directory: ""
requirements_file: ""
```
Expand All @@ -128,6 +129,7 @@ All the arguments are optional and most users should not need them:

- `args`: Arguments to be passed to ansible-lint command.
- `setup_python`: If python should be installed. Default is `true`.
- `python_version`: Python version to be installed. Default is `3.14`.
- `working_directory`: The directory where to run ansible-lint from. Default is
`github.workspace`. That might be needed if you want to lint only a subset of
your repository.
Expand Down