1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_avahi_daemon.git synced 2024-07-06 22:38:57 +02:00

Update avtions and lint template

This commit is contained in:
L3D 2023-10-23 00:52:21 +02:00
parent 773a0c6781
commit f14d46ed9e
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
6 changed files with 62 additions and 37 deletions

View file

@ -10,14 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'checkout git repo'
uses: actions/checkout@v4.1.0
- name: 'Checkout git repo'
uses: actions/checkout@v4.1.1
with:
lfs: true
submodules: true
fetch-depth: 0
- name: Run ansible-lint
uses: ansible-actions/ansible-lint-action@v0.0.2
uses: ansible-actions/ansible-lint-action@v1.0.1
with:
target: "./"

View file

@ -1,20 +1,24 @@
---
name: Galaxy release
name: Galaxy-NG Roles Import
# yamllint disable-line rule:truthy
on:
push:
branches: ['main']
release:
types: ['created']
jobs:
build:
name: Galaxy Role Importer
runs-on: ubuntu-latest
steps:
- name: checkout
- name: 'Checkout git repo'
uses: actions/checkout@v4
- name: galaxy
uses: robertdebock/galaxy-action@1.2.1
with:
submodules: true
fetch-depth: 0
- name: 'Release on galaxy'
uses: ansible-actions/ansible-galaxy-action@v1.0.1
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}

22
.github/workflows/j2lint-check.yml vendored Normal file
View file

@ -0,0 +1,22 @@
---
name: Jinja2 Linting check
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
build:
name: Jinja2 Linting
runs-on: ubuntu-latest
steps:
- name: 'Checkout git repo'
uses: actions/checkout@v4.1.1
with:
submodules: true
fetch-depth: 0
- name: Run j2lint
uses: ansible-actions/j2lint-action@v0.0.1
with:
target: "./"

22
.github/workflows/yamllint-check.yml vendored Normal file
View 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: "./"

View file

@ -1,22 +0,0 @@
---
name: 'Yamllint GitHub Actions'
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: '.'
yamllint_config_filepath: './.yamllint'
yamllint_strict: false
yamllint_comment: true
# env:
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }

View file

@ -2,11 +2,11 @@
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">
{%- if item.name is defined -%}
{{- item.name -}}
{%- else -%}
{{ item.service | upper }} server at %h
{%- endif -%}
{% if item.name is defined %}
{{ item.name }}
{% else %}
{{ item.service | upper }} server at %h
{% endif %}
</name>
<service protocol="{{ item.protocol | default("any") }}">
<type>_{{ item.service | lower }}._{{ item.transport | default("tcp") | lower }}</type>