Skip to content

Commit 9550cfa

Browse files
committed
Fix result generation
1 parent e338361 commit 9550cfa

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

scripts/generate-results.sh

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@ PLUGIN_NAME="$1"
77
VERSION="$2"
88
OWNER="$3"
99
REPO="$4"
10-
VERSION_MATCH="$5"
11-
ID_MATCH="$6"
10+
11+
# Checks
12+
ID_MATCH="$5"
13+
VERSION_MATCH="$6"
1214
README_PRESENT="$7"
1315
REQUIRED_ARTIFACTS="$8"
1416
SIGNATURE_VALID="$9"
1517

18+
# Output header
19+
echo "## Plugin Validation Results for $PLUGIN_NAME v$VERSION"
20+
echo
21+
echo "**Repository:** [$OWNER/$REPO](https://github.com/$OWNER/$REPO)"
22+
echo
23+
1624
# Build check list
1725
CHECKS=(
1826
"Version Match=$VERSION_MATCH"
@@ -22,22 +30,13 @@ CHECKS=(
2230
"Signature Validation=$SIGNATURE_VALID"
2331
)
2432

25-
# Format check list with emojis
26-
CHECK_LIST=""
33+
# Output check results
2734
for check in "${CHECKS[@]}"; do
2835
NAME=$(echo "$check" | cut -d= -f1)
2936
STATUS=$(echo "$check" | cut -d= -f2)
30-
echo "$NAME: $STATUS"
3137
if [ "$STATUS" = "true" ]; then
32-
CHECK_LIST+="$NAME\n"
38+
echo "$NAME"
3339
else
34-
CHECK_LIST+="$NAME\n"
40+
echo "$NAME"
3541
fi
36-
done
37-
38-
# Create comment with proper multiline formatting
39-
echo "## Plugin Validation Results for $PLUGIN_NAME v$VERSION
40-
41-
**Repository:** [$OWNER/$REPO](https://github.com/$OWNER/$REPO)
42-
43-
$CHECK_LIST"
42+
done

0 commit comments

Comments
 (0)