Add conditional logging for master branch
This commit is contained in:
3
.github/workflows/test.sh
vendored
3
.github/workflows/test.sh
vendored
@@ -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 ---
|
||||
|
||||
Reference in New Issue
Block a user