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: 3d7515f0-da9f-487c-a21b-c7d543f84d67 -->
  • Loading branch information
Alizter committed Mar 6, 2024
1 parent 450339e commit 78a5ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/whitespace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ jobs:
- name: git log --check
id: check_out
run: |
log=
log=
base_commit=$(git rev-parse FETCH_HEAD)
while IFS= read -r line; do
log="${log}\n${line}"
if [[ $line =~ ^-[^-] ]]; then
file_line=$(echo "$line" | cut -c 2-)
echo "::error file=${file_line%%:*},line=${file_line#*:}::Whitespace issue: ${file_line}"
echo "Whitespace issue: ${file_line}"
fi
done <<< "$(git diff --check $base_commit ${{ github.sha }} | grep '^-[^-]')"
Expand Down

0 comments on commit 78a5ba2

Please sign in to comment.