chore(deps): update dependency ansible-lint to v24.10.0 (#241) #773
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 CI Pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
defaults: | |
run: | |
working-directory: ansible | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
cache: pipenv | |
cache-dependency-path: "**/Pipfile.lock" | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: Install pipenv dependencies | |
run: pipenv install -d | |
- name: Run lint | |
run: pipenv run init && pipenv run lint | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate a token | |
id: token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.PUSHER_APP_ID }} | |
private-key: ${{ secrets.PUSHER_PRIVATE_KEY }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.token.outputs.token }} | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.13 | |
cache: pipenv | |
cache-dependency-path: "**/Pipfile.lock" | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: Install pipenv dependencies | |
run: pipenv install -d | |
- name: Run format | |
run: pipenv run format | |
- name: Push | |
id: push | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Run pipenv format" | |
branch: ${{ github.head_ref }} | |
commit_user_name: ictsc-actions[bot] | |
commit_user_email: 154957684+ictsc-actions[bot]@users.noreply.github.com | |
commit_author: ictsc-actions[bot] <154957684+ictsc-actions[bot]@users.noreply.github.com> | |
- name: Exit with Error If Files Are Changed | |
if: steps.push.outputs.changes_detected == 'true' | |
run: exit 1 |