Revert the ansible collections path to ansible/collections so we don'… #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: Lint | ||
on: # yamllint disable-line rule:truthy | ||
workflow_call: | ||
permissions: | ||
contents: read | ||
packages: read | ||
# To report GitHub Actions status checks | ||
statuses: write | ||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: read | ||
# To report GitHub Actions status checks | ||
statuses: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# super-linter needs the full git history to get the | ||
# list of files that changed across commits | ||
fetch-depth: 0 | ||
submodules: true | ||
- name: Run ansible-lint | ||
uses: ansible/[email protected] | ||
env: | ||
ANSIBLE_COLLECTIONS_PATH: ".ansible/collections" | ||
- name: Load super-linter configuration | ||
# Use grep inverse matching to exclude eventual comments in the .env file | ||
# because the GitHub Actions command to set environment variables doesn't | ||
# support comments. | ||
# yamllint disable-line rule:line-length | ||
# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable | ||
run: grep -v '^#' super-linter.env >> "$GITHUB_ENV" | ||
if: always() | ||
- name: Run super-linter | ||
uses: super-linter/[email protected] | ||
if: always() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |