feat: added ansible-lint to pre-commit

This commit is contained in:
mullholland 2023-06-09 16:25:19 +02:00
parent 8fbaaa94f6
commit 602c8fe964
5 changed files with 32 additions and 8 deletions

17
.github/dependabot.yml vendored Normal file
View File

@ -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"

View File

@ -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", "./"]

View File

@ -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

View File

@ -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:

View File

@ -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 %}