Skip to content

Commit 73908ef

Browse files
authored
Set python version for ubuntu latest
According to this comment: actions/runner-images#11499 (comment) This is the solution.
1 parent 3bad47e commit 73908ef

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@ jobs:
1010
ansible-lint:
1111
name: Ansible Lint
1212

13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- uses: actions/checkout@v4
1717

18+
# Python version being set because of issue with Ubuntu permissions and versions of Python < 3.11
19+
- name: Set up Python
20+
# This is the version of the action for setting up Python, not the Python version.
21+
uses: actions/setup-python@v5
22+
with:
23+
# Semantic version range syntax or exact version of a Python version
24+
python-version: '3.11'
25+
1826
- name: Install Ansible collections
1927
run: |
2028
ansible-galaxy collection install -r requirements.yml

0 commit comments

Comments
 (0)