Remove conda environment and recreate when env updated #168
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
--- | ||
name: Ansible Lint | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
build: | ||
name: Ansible Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check ansible-lint diff | ||
uses: ansible/[email protected] | ||
with: --fix | ||
- name: Check ansible lint diff and undo | ||
run: | | ||
# Check diff in the CI | ||
git diff | ||
# Undo diff to run ansible lint in the next step | ||
git checkout -- . | ||
- name: Run ansible-lint | ||
uses: ansible/[email protected] |