Merge pull request #2155 from pascaliske/renovate/k3s-io-k3s-1.x #672
This file contains 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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Ansible | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'ansible/**' | |
- '.github/workflows/ansible.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'ansible/**' | |
- '.github/workflows/ansible.yml' | |
env: | |
ANSIBLE_ROLES_PATH: ansible/roles | |
jobs: | |
linting: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
# checkout | |
- uses: actions/checkout@v4 | |
# workaround: ensure git directory exists in working directory, ansible action requires this | |
- name: Symlink Git directory to ansible working directory | |
run: | | |
ln -s ${{ github.workspace }}/.git ${{ github.workspace }}/ansible/.git | |
ln -s ${{ github.workspace }}/.ansible-lint ${{ github.workspace }}/ansible/.ansible-lint | |
# lint ansible | |
- uses: ansible/[email protected] | |
with: | |
working_directory: ${{ github.workspace }}/ansible |