Skip to content

Commit

Permalink
lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-DP committed Mar 10, 2025
1 parent 0bf694a commit e622987
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,22 @@ on:
pull_request:
branches:
- main
- release-1.4
- release-1.4.0.1
- release-1.4.1
- release-1.4.2
- devel-1.4.2
- devel-1.4.2.1
- devel-1.4.2.2
- devel-1.5
- release-1.5.1
- release-1.6
- release-1.7
- staging
- release-1.7.1
- pub/new_architecture

jobs:
build:
name: Ansible Lint # Naming the build is important to use it as a status check
name: Ansible Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Modify ansible.cfg for linting
run: |
sed -i '/collections_path/d' ansible.cfg
# - name: Modify ansible.cfg for linting
# run: |
# sed -i '/collections_path/d' ansible.cfg

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -40,7 +30,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install ansible
# remove @virtual_env
- name: Install Ansible Collections from requirements.yml
run: |
ansible-galaxy collection install -r .config/requirements.yml
Expand All @@ -49,5 +39,4 @@ jobs:
uses: ansible/ansible-lint@v25.1.3
with:
args: --config=.config/ansible-lint.yml
# env:
# ANSIBLE_COLLECTIONS_PATH: "/home/runner/work/omnia/omnia/.ansible/collections:/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/site-packages"

0 comments on commit e622987

Please # to comment.