Skip to content

Commit

Permalink
Update links.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Jocher <[email protected]>
  • Loading branch information
glenn-jocher authored Jan 21, 2025
1 parent 7e6b49d commit 2632fec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,14 @@ jobs:
--skip "*.pt,*.pth,*.torchscript,*.onnx,*.tflite,*.pb,*.bin,*.param,*.mlmodel,*.engine,*.npy,*.data*,*.csv,*pnnx*,*venv*,*translat*,*lock*,__pycache__*,*.ico,*.jpg,*.png,*.mp4,*.mov,/runs,/.git,./docs/??/*.md,./docs/mkdocs_??.yml" \
2>&1 || true)
# Process CODESPELL_OUTPUT and escape for multiline
# Process CODESPELL_OUTPUT
MODIFIED_OUTPUT=$(echo "$CODESPELL_OUTPUT" | sed 's#\(.*\):[0-9]*: \(.*\)#\1 \2#; s/\.html//; s#\(.*\)/index #\1/ #')

# Prepare the output for Slack with explicit newlines
ESCAPED_OUTPUT=$(echo "$MODIFIED_OUTPUT" | awk '{printf "%s\\n", $0}')

echo "CODESPELL_ERRORS<<EOF" >> $GITHUB_ENV
echo "$MODIFIED_OUTPUT" >> $GITHUB_ENV
echo "$ESCAPED_OUTPUT" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

echo "$MODIFIED_OUTPUT"
Expand Down

0 comments on commit 2632fec

Please sign in to comment.