diff --git a/.github/workflows/whitespace.yml b/.github/workflows/whitespace.yml index 8901833f8f9..5e7fcda91e3 100644 --- a/.github/workflows/whitespace.yml +++ b/.github/workflows/whitespace.yml @@ -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 '^-[^-]')"