1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic.git synced 2024-12-11 23:41:32 +01:00

Cleanup actions

This commit is contained in:
L3D 2023-08-10 11:46:05 +02:00
parent 7ec0667ac6
commit b3c305cdfb
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 31 additions and 8 deletions

View file

@ -2,22 +2,22 @@
name: Ansible Lint check name: Ansible Lint check
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on: [push, pull_request]
push:
branches: '*'
pull_request:
branches: '*'
jobs: jobs:
build: build:
name: Ansible Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'checkout git repo' - name: 'checkout git repo'
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
lfs: true
submodules: false
fetch-depth: 0
- name: 'Lint Ansible Playbook' - name: 'Lint Ansible Playbook'
uses: ansible/ansible-lint-action@v6 uses: ansible/ansible-lint-action@v6
with: with:
targets: "." path: "."

View file

@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: 'release on galaxy' - name: 'release on galaxy'
uses: robertdebock/galaxy-action@1.2.0 uses: robertdebock/galaxy-action@1.2.1
with: with:
galaxy_api_key: ${{ secrets.galaxy_api_key }} galaxy_api_key: ${{ secrets.galaxy_api_key }}
git_branch: 'main' git_branch: 'main'

23
.github/workflows/yamllint.yaml vendored Normal file
View file

@ -0,0 +1,23 @@
---
name: 'Yamllint GitHub Actions'
# yamllint disable-line rule:truthy
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'checkout git repo'
uses: actions/checkout@v3
- name: 'Yamllint'
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_file_or_dir: '.'
yamllint_config_filepath: './.yamllint'