|
14 | 14 |
|
15 | 15 | steps: |
16 | 16 | - name: Checkout repository |
17 | | - uses: actions/checkout@v5 |
| 17 | + uses: actions/checkout@v6 |
18 | 18 |
|
19 | 19 | - name: Check for files starting with a blank line |
20 | 20 | run: find . -path './.git' -prune -or -type f -print0 | xargs -0 -L1 bash -c 'head -1 "$0" | grep --binary-files=without-match --regexp="^$"; if [[ "$?" == "0" ]]; then echo "Blank line found at start of $0."; false; fi' |
|
24 | 24 |
|
25 | 25 | steps: |
26 | 26 | - name: Checkout repository |
27 | | - uses: actions/checkout@v5 |
| 27 | + uses: actions/checkout@v6 |
28 | 28 |
|
29 | 29 | - name: Check for unnecessary use of true tabs |
30 | 30 | run: find . -path './.git' -prune -or \( -not -name 'keywords.txt' -and -not -name 'Makefile' -and -type f \) -exec grep --with-filename --line-number --binary-files=without-match --regexp=$'\t' '{}' \; -exec echo 'Tab found.' \; -exec false '{}' + |
|
34 | 34 |
|
35 | 35 | steps: |
36 | 36 | - name: Checkout repository |
37 | | - uses: actions/checkout@v5 |
| 37 | + uses: actions/checkout@v6 |
38 | 38 |
|
39 | 39 | - name: Check for trailing whitespace |
40 | 40 | run: find . -path './.git' -prune -or -type f -exec grep --with-filename --line-number --binary-files=without-match --regexp='[[:blank:]]$' '{}' \; -exec echo 'Trailing whitespace found.' \; -exec false '{}' + |
|
44 | 44 |
|
45 | 45 | steps: |
46 | 46 | - name: Checkout repository |
47 | | - uses: actions/checkout@v5 |
| 47 | + uses: actions/checkout@v6 |
48 | 48 |
|
49 | 49 | - name: Check for non-Unix line endings |
50 | 50 | run: find . -path './.git' -prune -or -type f -exec grep --files-with-matches --binary-files=without-match --regexp=$'\r$' '{}' \; -exec echo 'Non-Unix EOL detected.' \; -exec false '{}' + |
|
54 | 54 |
|
55 | 55 | steps: |
56 | 56 | - name: Checkout repository |
57 | | - uses: actions/checkout@v5 |
| 57 | + uses: actions/checkout@v6 |
58 | 58 |
|
59 | 59 | - name: Check for blank lines at end of files |
60 | 60 | run: find . -path './.git' -prune -or -type f -print0 | xargs -0 -L1 bash -c 'tail -1 "$0" | grep --binary-files=without-match --regexp="^$"; if [[ "$?" == "0" ]]; then echo "Blank line found at end of $0."; false; fi' |
|
64 | 64 |
|
65 | 65 | steps: |
66 | 66 | - name: Checkout repository |
67 | | - uses: actions/checkout@v5 |
| 67 | + uses: actions/checkout@v6 |
68 | 68 |
|
69 | 69 | - name: Check for files that don't end in a newline |
70 | 70 | # https://stackoverflow.com/a/25686825 |
|
0 commit comments