Testing warning labels

This commit is contained in:
EncodedVenom 2024-10-19 19:05:11 -04:00 committed by GitHub
parent b1bc689cbd
commit 4c9c1a50ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,4 +17,14 @@ jobs:
- name: Analyze
continue-on-error: true
run: |
luau-analyze src
output=$(luau-analyze src)
# Parse the output and generate GitHub Actions warnings
echo "$output" | while IFS= read -r line; do
if [[ $line =~ (.+)\(([0-9]+),([0-9]+)\):\ (.*) ]]; then
file="${BASH_REMATCH[1]}"
line_number="${BASH_REMATCH[2]}"
message="${BASH_REMATCH[4]#TypeError: }"
echo "::warning file=$file,line=$line_number,col=0::$message"
fi
done