Skip to content

Commit

Permalink
Update check_yaml_name.yml (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
raller1028 authored Nov 21, 2023
1 parent 13f5dda commit 98942c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check_yaml_name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
find . -type f \( -name "docker-compose.yaml" -or -name "docker-compose.yml" \) | while read -r file; do
if ! grep -qP '^name:\s[a-z0-9_-]*$' "$file"; then
echo "There is a problem with the value of name in the submitted yaml, please make sure the value is in the range [a-z0-9_-]. And error file name:$file"
cat $file
exit 1
fi
done

0 comments on commit 98942c0

Please sign in to comment.