Fix a little.
This commit is contained in:
parent
32027a3d20
commit
f0358c18aa
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/sh
|
||||
|
||||
yamllint .
|
||||
ansible-lint
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.2.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-added-large-files
|
||||
|
||||
- repo: https://github.com/adrienverge/yamllint.git
|
||||
rev: v1.17.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
args: [-c=.yamllint]
|
||||
|
||||
- repo: https://github.com/ansible/ansible-lint.git
|
||||
rev: v4.3.5
|
||||
hooks:
|
||||
- id: ansible-lint
|
||||
pass_filenames: false
|
||||
19
generate.yml
19
generate.yml
|
|
@ -153,17 +153,15 @@
|
|||
when:
|
||||
travis_secure.stdout is defined
|
||||
|
||||
- name: create .github directory
|
||||
- name: create .github directories
|
||||
file:
|
||||
path: "{{ role_path }}/.github"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: create .github/workflows directory
|
||||
file:
|
||||
path: "{{ role_path }}/.github/workflows"
|
||||
path: "{{ role_path }}/{{ item }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
loop:
|
||||
- .github
|
||||
- .github/workflows
|
||||
- .github/ISSUE_TEMPLATE
|
||||
|
||||
- name: copy file
|
||||
copy:
|
||||
|
|
@ -181,9 +179,8 @@
|
|||
dest: .yamllint
|
||||
- source: FUNDING.yml
|
||||
dest: .github/FUNDING.yml
|
||||
- source: pre-commit
|
||||
dest: .git/hooks/pre-commit
|
||||
mode: "0755"
|
||||
- source: pre-commit-config.yaml
|
||||
dest: .pre-commit-config.yaml
|
||||
loop_control:
|
||||
label: "{{ item.source }}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue