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:
Ryan Lerch 2026-02-24 20:44:10 +10:00 • committed by Kevin Fenzi
commit 0e64c90fea
5 changed files with 20 additions and 13 deletions

View file

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

View file

@ -27,4 +27,5 @@ rules:
ignore:
- '*/templates/*'
- '*/openshift-apps/*/templates/*'
- '.forgejo/workflows/*'
...

View file

@ -1,2 +1,2 @@
---
FedoraBranched: False
FedoraBranched: false

View file

@ -1,2 +1,2 @@
---
FedoraPreviousPrevious: False
FedoraPreviousPrevious: false

View file

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