From 7febaf8b68560d9794087b1de4d3a067e2ec16a3 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sun, 9 Oct 2022 23:03:12 +0200 Subject: [PATCH] GNuComment: clear comment log before appending the messages --- .github/workflows/GnuTests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/GnuTests.yml b/.github/workflows/GnuTests.yml index 086174654..dd41b9efe 100644 --- a/.github/workflows/GnuTests.yml +++ b/.github/workflows/GnuTests.yml @@ -194,6 +194,10 @@ jobs: mkdir -p ${COMMENT_DIR} echo ${{ github.event.number }} > ${COMMENT_DIR}/NR COMMENT_LOG="${COMMENT_DIR}/result.txt" + + # The comment log might be downloaded from a previous run + # We only want the new changes, so remove it if it exists. + rm -f ${COMMENT_LOG} touch ${COMMENT_LOG} if test -f "${REF_LOG_FILE}"; then