From c1cab89da14f6e20128a87defae8d30528d8bceb Mon Sep 17 00:00:00 2001 From: AngrySoundTech Date: Sun, 10 Dec 2023 16:53:02 -0500 Subject: [PATCH] Update comment-on-pr.yaml --- .../.github/workflows/comment-on-pr.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/civmodcore-paper/.github/workflows/comment-on-pr.yaml b/plugins/civmodcore-paper/.github/workflows/comment-on-pr.yaml index b64ae03b1..c25432c6e 100644 --- a/plugins/civmodcore-paper/.github/workflows/comment-on-pr.yaml +++ b/plugins/civmodcore-paper/.github/workflows/comment-on-pr.yaml @@ -49,17 +49,17 @@ jobs: echo "Head SHA: $HEAD_SHA" echo "HEAD_SHA=$HEAD_SHA" >> "$GITHUB_ENV" - - name: Find Comment - uses: peter-evans/find-comment@v2 - id: find-comment + - name: Delete old comments + uses: izhangzhihao/delete-comment@master with: - issue-number: ${{ env.PR_NUMBER }} - comment-author: 'github-actions[bot]' + github_token: ${{ secrets.GITHUB_TOKEN }} + delete_user_name: github-actions[bot] + issue_number: ${{ env.PR_NUMBER }} - name: Update Comment env: JOB_PATH: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ env.PREVIOUS_JOB_ID }}" - ARTIFACT_URL: "${{ github.server_url }}/${{ github.repository }}/suites/$SUITE_ID/artifacts/$ARTIFACT_ID" + ARTIFACT_URL: "${{ github.server_url }}/${{ github.repository }}/suites/${{ env.SUITE_ID }}/artifacts/${{ env.ARTIFACT_ID }}" HEAD_SHA: "${{ env.HEAD_SHA }}" uses: peter-evans/create-or-update-comment@v3 with: