File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,23 @@ jobs:
5151 echo "found=true" >> "$GITHUB_OUTPUT"
5252 echo "url=https://github.com/$repo/actions/runs/$run_id/artifacts/$artifact_id" >> "$GITHUB_OUTPUT"
5353
54- - name : Comment with documentation link
55- if : steps.artifact_url.outputs.found == 'true'
54+ # Determine if the automated documentation comment exists.
55+ - name : Find Comment
56+ uses : peter-evans/find-comment@v3
57+ id : fc
58+ with :
59+ issue-number : ${{ github.event.pull_request.number }}
60+ comment-author : ' github-actions[bot]'
61+ body-includes : " ✅ Documentation built:"
62+
63+ # Create a comment with a download link to build docs
64+ - name : Create or update comment
5665 uses : peter-evans/create-or-update-comment@v4
5766 with :
58- token : ${{ secrets.GITHUB_TOKEN }}
67+ comment-id : ${{ steps.fc.outputs.comment-id }}
5968 issue-number : ${{ github.event.pull_request.number }}
6069 body : |
6170 ✅ Documentation built:
6271 👉 [Download](${{ steps.artifact_url.outputs.url }})
63- Note: You must be logged in to github and a DASDAE member to access the link.
72+ Note: You must be logged in to github and a DASDAE member to access the link.
73+ edit-mode : replace
You can’t perform that action at this time.
0 commit comments