This commit is contained in:
EncodedVenom 2024-12-28 21:59:30 +01:00 committed by GitHub
commit 7f37a478a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -16,4 +16,5 @@ jobs:
- name: Analyze - name: Analyze
run: | run: |
output=$(luau-analyze src || true) # Suppress errors for now. (luau-analyze src || true) > analyze-log.txt # Suppress errors for now.
bash ./scripts/gh-warn-luau-analyze.sh analyze-log.txt

View file

@ -0,0 +1,13 @@
# Read the input file line by line
while IFS= read -r line; do
# Use regex to capture file name, line number, column number, and message
if [[ $line =~ ^(.+)\(([0-9]+),([0-9]+)\):\ (.+)$ ]]; then
file="${BASH_REMATCH[1]}"
line_number="${BASH_REMATCH[2]}"
column_number="${BASH_REMATCH[3]}"
message="${BASH_REMATCH[4]}"
# Format output for GitHub Actions
echo "::warning file=$file,line=$line_number,col=$column_number::${message}"
fi
done < "$1"