Skip to content

Commit

Permalink
Update validate-project-file.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird committed Apr 5, 2024
1 parent 8d3beb8 commit e528ef9
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/validate-project-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:
- '.github/workflows/validate-project-file.yml'
- 'test_validate_format.py'
- 'validate_format.py'
pull_request:
paths:
- '_projects/*.md'
- '.github/workflows/validate-project-file.yml'
- 'test_validate_format.py'
- 'validate_format.py'
# pull_request:
# paths:
# - '_projects/*.md'
# - '.github/workflows/validate-project-file.yml'
# - 'test_validate_format.py'
# - 'validate_format.py'

jobs:
validate:
Expand Down Expand Up @@ -64,11 +64,12 @@ jobs:
- name: Validate all project files in main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
find _projects -name '*.md' | while read file; do
output=$(python validate_format.py "$file" 2>&1) || {
echo "Validation failed for $file with message: $output"
exit 1
}
echo "$output"
done
pytest test_validate_format.py
# find _projects -name '*.md' | while read file; do
# output=$(python validate_format.py "$file" 2>&1) || {
# echo "Validation failed for $file with message: $output"
# exit 1
# }
# echo "$output"
# done
shell: bash

0 comments on commit e528ef9

Please sign in to comment.