homeserver/.gitea/workflows/ansible-lint.yaml

30 lines
743 B
YAML
Raw Normal View History

2024-08-22 21:44:44 +02:00
name: ansible-lint
2024-08-22 22:01:32 +02:00
on:
push:
branches: [ master ]
pull_request:
2024-08-22 21:44:44 +02:00
2024-08-22 22:03:00 +02:00
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
2024-08-22 22:04:51 +02:00
group: ${{ github.workflow }}-${{ github.ref }}
2024-08-22 22:03:00 +02:00
cancel-in-progress: true
2024-08-22 22:04:51 +02:00
2024-08-22 21:44:44 +02:00
jobs:
ansible-lint:
2024-08-22 21:50:45 +02:00
runs-on: ubuntu-latest
2024-08-22 21:44:44 +02:00
steps:
- name: Checkout code
uses: actions/checkout@v3
2024-08-22 21:48:29 +02:00
- name: write vault-pass
2024-08-22 21:57:09 +02:00
run: echo ${{ secrets.VAULTPASS }} > ./vault-pass
2024-08-22 21:48:29 +02:00
- name: run ansible-lint
uses: docker://registry.mgrote.net/ansible-devspace:latest
2024-08-22 21:51:15 +02:00
with:
args: ansible-lint --force-color --format pep8 --show-relpath
2024-08-22 21:45:25 +02:00
2024-08-22 21:54:48 +02:00
# VAULTPASS ist als Secrets auf Repo-Ebene angelegt