mirror of
https://github.com/roles-ansible/ansible_role_versioncheck.git
synced 2024-08-16 15:59:49 +02:00
commit
6d2609a130
7 changed files with 45 additions and 11 deletions
8
.github/workflows/ansible-debian-stable.yml
vendored
8
.github/workflows/ansible-debian-stable.yml
vendored
|
@ -2,7 +2,13 @@
|
|||
name: Ansible check debian:stable
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches: '*'
|
||||
pull_request:
|
||||
branches: '*'
|
||||
schedule:
|
||||
- cron: '23 6 * */1 *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
8
.github/workflows/ansible-linting-check.yml
vendored
8
.github/workflows/ansible-linting-check.yml
vendored
|
@ -2,7 +2,13 @@
|
|||
name: Ansible Lint check
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches: '*'
|
||||
pull_request:
|
||||
branches: '*'
|
||||
schedule:
|
||||
- cron: '42 6 * */1 *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
19
.github/workflows/galaxy.yml
vendored
Normal file
19
.github/workflows/galaxy.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
name: Galaxy release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
release:
|
||||
types: ['created']
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: galaxy
|
||||
uses: robertdebock/galaxy-action@1.1.0
|
||||
with:
|
||||
galaxy_api_key: ${{ secrets.galaxy_api_key }}
|
12
.github/workflows/yamllint.yaml
vendored
12
.github/workflows/yamllint.yaml
vendored
|
@ -2,7 +2,13 @@
|
|||
name: 'Yamllint GitHub Actions'
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches: '*'
|
||||
pull_request:
|
||||
branches: '*'
|
||||
schedule:
|
||||
- cron: '23 6 * */1 *'
|
||||
|
||||
jobs:
|
||||
yamllint:
|
||||
|
@ -16,7 +22,3 @@ jobs:
|
|||
with:
|
||||
yamllint_file_or_dir: '.'
|
||||
yamllint_config_filepath: './.yamllint'
|
||||
yamllint_strict: false
|
||||
yamllint_comment: true
|
||||
# env:
|
||||
# GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }
|
||||
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.cache
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
galaxy_info:
|
||||
author: L3D
|
||||
author: do1jlr
|
||||
description: Make sure you are only executing ansible with at least a specific ansible version.
|
||||
license: "MIT"
|
||||
min_ansible_version: 2.7
|
||||
github_branch: master
|
||||
min_ansible_version: 2.8
|
||||
github_branch: main
|
||||
role_name: ansible_version
|
||||
platforms:
|
||||
- name: Archlinux
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: "check if ansible version is above {{ check_ansible_version }}"
|
||||
assert:
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- "ansible_version.full is version_compare(check_ansible_version, '>=')"
|
||||
fail_msg: "[ERROR] You need at least ansible version {{ check_ansible_version }}. Current Version: {{ ansible_version.full }}"
|
||||
|
|
Loading…
Reference in a new issue