feat: added ansible-lint to pre-commit
This commit is contained in:
parent
8fbaaa94f6
commit
602c8fe964
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
#
|
||||
# Ansible managed
|
||||
#
|
||||
|
||||
# Set update schedule for GitHub Actions
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
# Check for updates to GitHub Actions every weekday
|
||||
interval: "daily"
|
||||
assignees:
|
||||
- "mullholland"
|
||||
|
|
@ -22,3 +22,11 @@ repos:
|
|||
- id: ansible_role_find_undefined_handlers
|
||||
- id: ansible_role_find_unquoted_values
|
||||
- id: ansible_role_find_horizontal_when
|
||||
|
||||
- repo: https://github.com/ansible-community/ansible-lint.git
|
||||
rev: v6.17.0 # put latest release tag from https://github.com/ansible-community/ansible-lint/releases/
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
files: \.(yaml|yml)$
|
||||
verbose: true
|
||||
args: ["-p", "./"]
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ molecule:
|
|||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
galaxy:
|
||||
script:
|
||||
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ galaxy_namespace }} ${CI_PROJECT_NAME}
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG != null
|
||||
# galaxy:
|
||||
# script:
|
||||
# - ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ galaxy_namespace }} ${CI_PROJECT_NAME}
|
||||
# rules:
|
||||
# - if: $CI_COMMIT_TAG != null
|
||||
|
|
|
|||
|
|
@ -16,9 +16,8 @@ permissions:
|
|||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: go-semantic-release/action@v1
|
||||
id: semrel
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ jobs:
|
|||
steps:
|
||||
- uses: "actions/checkout@master"
|
||||
- name: "TODO to Issue"
|
||||
uses: "alstr/todo-to-issue-action@v4.1"
|
||||
uses: "alstr/todo-to-issue-action@v4.10"
|
||||
id: "todo"
|
||||
with:
|
||||
TOKEN: ${% raw %}{{ secrets.GITHUB_TOKEN }}{% endraw %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue