Fix yamllint truthy warnings
- Add .forgejo/workflows/* to ignore list since workflow files use GitHub Actions syntax (like 'on:') that doesn't conform to Ansible YAML truthy value requirements - Fix truthy values in vars files to use lowercase 'true'/'false' instead of 'True'/'False' to comply with yamllint requirements
This commit is contained in:
parent
e1d366b7ca
commit
0e64c90fea
5 changed files with 20 additions and 13 deletions
|
|
@ -19,18 +19,24 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: https://code.forgejo.org/tj-actions/changed-files@v47
|
||||
# - name: Get changed files
|
||||
# id: changed-files
|
||||
# uses: https://code.forgejo.org/tj-actions/changed-files@v47
|
||||
|
||||
# - name: Run yamllint
|
||||
# if: steps.changed-files.outputs.any_changed == 'true'
|
||||
# run: |
|
||||
# for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
# if [[ "$file" == *.yml || "$file" == *.yaml ]]; then
|
||||
# yamllint "$file"
|
||||
# fi
|
||||
# done
|
||||
|
||||
# Run YAMLLint on all files
|
||||
- name: Run yamllint
|
||||
if: steps.changed-files.outputs.any_changed == 'true'
|
||||
run: |
|
||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
if [[ "$file" == *.yml || "$file" == *.yaml ]]; then
|
||||
yamllint "$file"
|
||||
fi
|
||||
done
|
||||
yamllint -s .
|
||||
|
||||
|
||||
ansible-lint:
|
||||
runs-on: infra-1
|
||||
|
|
|
|||
|
|
@ -27,4 +27,5 @@ rules:
|
|||
ignore:
|
||||
- '*/templates/*'
|
||||
- '*/openshift-apps/*/templates/*'
|
||||
- '.forgejo/workflows/*'
|
||||
...
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
FedoraBranched: False
|
||||
FedoraBranched: false
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
FedoraPreviousPrevious: False
|
||||
FedoraPreviousPrevious: false
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
# is the infrastructure freeze currently in place?
|
||||
InfraFrozen: False
|
||||
InfraFrozen: false
|
||||
# is the pending release (Branched) currently frozen?
|
||||
NextReleaseFrozen: False
|
||||
NextReleaseFrozen: false
|
||||
# for 'backwards compatibility'
|
||||
Frozen: "{{ InfraFrozen }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue