Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Caglayan <[email protected]>

<!-- ps-id: b4894953-798e-44fe-98a4-e4d6772f7617 -->
  • Loading branch information
Alizter committed Mar 6, 2024
1 parent ed89c54 commit 314dac6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/whitespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
base_commit=$(git rev-parse FETCH_HEAD)
while IFS= read -r line; do
log="${log}\n${line}"
echo "${line}"
done <<< "$(git diff --check $base_commit ${{ github.sha }})"
echo "::error file=${line%%:*},line=${line#*:}::Whitespace issue: ${line}"
done <<< "$(git diff --check $base_commit ${{ github.sha }} | grep '^-[^-]')"
if [ -n "${log}" ]; then
echo -e "${log}" >> $GITHUB_OUTPUT
echo -e "Whitespace issues found in the following file(s) and line number(s):\n${log}" >> $GITHUB_OUTPUT
exit 2
fi

0 comments on commit 314dac6

Please sign in to comment.