Fixing yml files with .yaml extension (#338)

This commit is contained in:
Wietze
2023-10-19 17:17:15 +01:00
committed by GitHub
parent 4f83231697
commit 760151b598
3 changed files with 9 additions and 27 deletions

View File

@@ -9,7 +9,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Check file extensions
run: if [[ $(find "${GITHUB.WORKSPACE}/yml" -type f -not -name "*.yml") ]]; then echo "Files with unexpected extension found, please ensure you use '.yml' (all lower case) for files in the yml/ folder."; exit 1; fi
run: |
files=$(find "$GITHUB_WORKSPACE/yml" -type f -not -name "*.yml");
if [[ $files ]]; then
echo "Files with unexpected extension found, please ensure you use '.yml' (all lower case) for files in the yml/ folder.";
for i in $files; do echo "::error file=$i,line=1::Unexpected extension"; done
exit 1;
fi
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
with: