mirror of
https://github.com/roles-ansible/ansible_role_acmetool.git
synced 2024-08-16 12:29:49 +02:00
commit
4fa56b7db1
4 changed files with 44 additions and 44 deletions
23
.github/workflows/ansible-linting-check.yml
vendored
23
.github/workflows/ansible-linting-check.yml
vendored
|
@ -2,22 +2,21 @@
|
||||||
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@v4
|
||||||
|
|
||||||
- name: 'Lint Ansible Playbook'
|
|
||||||
uses: ansible/ansible-lint-action@v6
|
|
||||||
with:
|
with:
|
||||||
targets: "."
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run ansible-lint
|
||||||
|
uses: ansible-actions/ansible-lint-action@v1.0.2
|
||||||
|
with:
|
||||||
|
target: "./"
|
||||||
|
|
20
.github/workflows/galaxy.yml
vendored
20
.github/workflows/galaxy.yml
vendored
|
@ -1,22 +1,24 @@
|
||||||
---
|
---
|
||||||
name: Galaxy release
|
name: Galaxy-NG Roles Import
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: ['main']
|
|
||||||
release:
|
release:
|
||||||
types: ['created']
|
types: ['created']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Galaxy Role Importer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
|
||||||
- name: 'checkout git repo'
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: 'release on galaxy'
|
steps:
|
||||||
uses: robertdebock/galaxy-action@1.2.1
|
- name: 'Checkout git repo'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: 'Release on galaxy'
|
||||||
|
uses: ansible-actions/ansible-galaxy-action@v1.0.1
|
||||||
with:
|
with:
|
||||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
||||||
git_branch: 'main'
|
|
||||||
|
|
22
.github/workflows/yamllint-check.yml
vendored
Normal file
22
.github/workflows/yamllint-check.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
name: Yamllint check
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Yamllint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 'checkout git repo'
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Run yamllint
|
||||||
|
uses: ansible-actions/yamllint-action@v0.0.1
|
||||||
|
with:
|
||||||
|
target: "./"
|
23
.github/workflows/yamllint.yaml
vendored
23
.github/workflows/yamllint.yaml
vendored
|
@ -1,23 +0,0 @@
|
||||||
---
|
|
||||||
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.0.0
|
|
||||||
with:
|
|
||||||
yamllint_file_or_dir: '.'
|
|
||||||
yamllint_config_filepath: './.yamllint'
|
|
Loading…
Reference in a new issue