From 8eb1c7bec64c2a735920de3d8faae84f0cd6b721 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 7 Mar 2024 19:27:04 +0100 Subject: [PATCH] fix(github): qns comment on failure only and update existing Once the QUIC Network Simulator workflow finished, the QUIC Network Simulator Comment workflow adds the test results as a comment to the corresponding pull request. This commit makes two changes: - Only add a comment on test failure. - In case a comment already exists, update it in place. --- .github/workflows/qns-comment.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qns-comment.yml b/.github/workflows/qns-comment.yml index 465be3080c..8b897b259a 100644 --- a/.github/workflows/qns-comment.yml +++ b/.github/workflows/qns-comment.yml @@ -18,7 +18,8 @@ jobs: pull-requests: write runs-on: ubuntu-latest if: > - github.event.workflow_run.event == 'pull_request' + github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.conclusion == 'failure' steps: - name: Download comment-data uses: actions/download-artifact@v4 @@ -52,3 +53,4 @@ jobs: with: filePath: comment pr_number: ${{ steps.pr-number.outputs.number }} + comment_tag: quic-network-simulator-comment