Add conditional logging for master branch

This commit is contained in:
Hatvani Tamás
2025-11-11 12:32:03 +01:00
committed by GitHub
parent eaf3bfa192
commit 5ee797e1f8

View File

@@ -30,6 +30,9 @@ echo "$PROJECT_NAME" > "$LOG_FILE"
awk '/^running [0-9]+ test[s]?$/,/^$/' full_test_output.log >> "$LOG_FILE"
# --- APPEND TO GLOBAL LOG (in repo root) ---
if [[ $(git rev-parse --abbrev-ref HEAD) == "master" ]]; then
echo "master" >> $FINAL_LOG
fi
cat "$LOG_FILE" >> "$FINAL_LOG"
# --- SUMMARY ---