Update NPM version to 2.10.4 #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Check YAML | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
check_yaml: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check name field in YAML files | |
id: check_name | |
run: | | |
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" | |
exit 1 | |
fi | |
done |