fix for lint-workflow

This commit is contained in:
AnsibleGuy 2023-06-28 21:07:32 +02:00
parent 15e0d1fd28
commit e6e6e00eb1
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
1 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ jobs:
- name: Running PyLint (*.py.j2) - name: Running PyLint (*.py.j2)
run: | run: |
if [ -f ".pylintrc_j2" ]; then j2_cnf=" --rcfile $(pwd)/.pylintrc_j2"; else j2_cnf=''; fi if [ -f ".pylintrc_j2" ]; then j2_cnf=".pylintrc_j2"; else j2_cnf='.pylintrc'; fi
find -type f -name *.py.j2 -print0 | xargs --no-run-if-empty -0 -n1 pylint${j2_cnf} find -type f -name *.py.j2 -print0 | xargs --no-run-if-empty -0 -n1 pylint --rcfile "$(pwd)/${j2_cnf}"
shell: bash shell: bash
- name: Running YamlLint - name: Running YamlLint
@ -49,8 +49,8 @@ jobs:
- name: Preparing collection for AnsibleLint - name: Preparing collection for AnsibleLint
run: | run: |
mkdir -p /tmp/ansible_lint/roles mkdir -p "/tmp/ansible_lint/roles/${{ github.event.repository.name }}"
ln -s ${{ github.workspace }} /tmp/ansible_lint/roles ln -s "${{ github.workspace }}" "/tmp/ansible_lint/roles/${{ github.event.repository.name }}"
shell: bash shell: bash
- name: Running AnsibleLint - name: Running AnsibleLint