From e5c6c31e8315d46b02237ae42d0b2f58c89c650b Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Mon, 15 Apr 2024 17:39:06 +0200 Subject: [PATCH] Fix duplicate Nixpkgs diff comment A duplicate comment is posted when the action runs the first time, because the posted comment isn't reused. --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 420cc9c8..0ecdd754 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,6 +44,7 @@ jobs: - name: Create or update comment uses: peter-evans/create-or-update-comment@v4 + id: couc with: comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} @@ -66,7 +67,7 @@ jobs: - name: Create or update comment uses: peter-evans/create-or-update-comment@v4 with: - comment-id: ${{ steps.fc.outputs.comment-id }} + comment-id: ${{ steps.couc.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} edit-mode: replace body: |