Skip to content

Commit

Permalink
Fix duplicate Nixpkgs diff comment
Browse files Browse the repository at this point in the history
A duplicate comment is posted when the action runs the first time,
because the posted comment isn't reused.
  • Loading branch information
infinisil committed Apr 15, 2024
1 parent 3cb264c commit e5c6c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand Down

0 comments on commit e5c6c31

Please sign in to comment.