Skip to content

Commit

Permalink
Avoid checking header in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iBatistic committed Jul 11, 2024
1 parent 374b94b commit b2a9996
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/checkFile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
check_added_files:
runs-on: ubuntu-latest

steps:
steps:
- name: Checkout code
uses: actions/checkout@v3

Expand All @@ -21,12 +21,13 @@ jobs:
run: |
# Run the script on each added file
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
extension="${file##*.}"
chmod +x ./applications/scripts/checkFileHeader.sh
if [ "$extension" == "py" ]; then
echo "Checking: $file"
./applications/scripts/checkFileHeader.sh "$file"
if [ "$(basename "$file")" != "__init__.py"]; then
echo "Checking: $file"
./applications/scripts/checkFileHeader.sh "$file"
fi
done

0 comments on commit b2a9996

Please sign in to comment.