Skip to content

Commit db67b2b

Browse files
committed
Use pre-commit in GitHub Action to match gate.sh exactly
Run 'pre-commit run --all-files' instead of 'ansible-lint --strict' directly. This matches gate.sh behavior and uses the pinned ansible-lint version (v25.8.2) with jmespath dependency from .pre-commit-config.yaml. Ref: OSPRH-32049 Change-Id: I9998d10df1bed2e36c73d7b6e0e59662a68ea501 Signed-off-by: Itay Matza <imatza@redhat.com>
1 parent 9fa3848 commit db67b2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Ansible collections
2020
run: ansible-galaxy collection install -r requirements.yaml
2121

22-
- name: Run ansible-lint
23-
run: ansible-lint --strict
22+
- name: Run pre-commit (ansible-lint)
23+
run: pre-commit run --all-files
2424
env:
2525
ANSIBLE_VAULT_PASSWORD_FILE: /home/cloud-admin/.vault-pass

0 commit comments

Comments
 (0)