Update comment-on-pr.yaml

This commit is contained in:
AngrySoundTech
2023-12-10 16:53:02 -05:00
committed by GitHub
parent c765d3c60b
commit c1cab89da1

View File

@@ -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: