Skip to content

Commit

Permalink
ansible-lint - repo is already in collection format - do not convert
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Jul 4, 2024
1 parent 9ffb6b8 commit 9dba88d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on: # yamllint disable-line rule:truthy
branches:
- main
workflow_dispatch:
env:
LSR_ROLE2COLL_NAMESPACE: performancecopilot
LSR_ROLE2COLL_NAME: metrics
TOX_WORK_DIR: .tox
permissions:
contents: read
jobs:
Expand All @@ -23,15 +19,5 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Convert role to collection format
run: |
set -euxo pipefail
coll_dir="$TOX_WORK_DIR/ansible_collections/${{ env.LSR_ROLE2COLL_NAMESPACE }}/${{ env.LSR_ROLE2COLL_NAME }}"
bash scripts/lsrcollection.sh
# ansible-lint action requires a .git directory???
# https://github.com/ansible/ansible-lint/blob/main/action.yml#L45
mkdir -p "$coll_dir/.git"
- name: Run ansible-lint
uses: ansible/ansible-lint@v24
with:
working_directory: ${{ env.TOX_WORK_DIR }}/ansible_collections/${{ env.LSR_ROLE2COLL_NAMESPACE }}/${{ env.LSR_ROLE2COLL_NAME }}

0 comments on commit 9dba88d

Please sign in to comment.