We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43834f1 commit f52c0a6Copy full SHA for f52c0a6
.github/workflows/o2-linter.yml
@@ -24,6 +24,10 @@ jobs:
24
run: |
25
# Diff against the common ancestor of the source branch and the main branch.
26
readarray -t files < <(git diff --diff-filter d --name-only origin/${{ env.MAIN_BRANCH }}...)
27
+ if [ ${#files[@]} -eq 0 ]; then
28
+ echo "::notice::No files to lint."
29
+ exit 0
30
+ fi
31
[ ${{ github.event_name }} == 'pull_request' ] && options="-g"
32
# shellcheck disable=SC2086 # Ignore unquoted options.
33
python3 Scripts/o2_linter.py $options "${files[@]}"
0 commit comments