|
29 | 29 | PR_TITLE: ${{ steps.pr_number.outputs.PR_TITLE }}
|
30 | 30 | PR_URL: ${{ steps.pr_number.outputs.PR_URL }}
|
31 | 31 | PR_BRANCH: ${{ steps.pr_number.outputs.PR_BRANCH }}
|
32 |
| - COMMENT_ID: ${{ steps.comment_id.outputs.comment-id }} |
33 | 32 | CODER_BASE_IMAGE_TAG: ${{ steps.set_tags.outputs.CODER_BASE_IMAGE_TAG }}
|
34 | 33 | CODER_IMAGE_TAG: ${{ steps.set_tags.outputs.CODER_IMAGE_TAG }}
|
35 | 34 |
|
@@ -63,24 +62,15 @@ jobs:
|
63 | 62 | CODER_BASE_IMAGE_TAG: ghcr.io/coder/coder-preview-base:pr${{ steps.pr_number.outputs.PR_NUMBER }}
|
64 | 63 | CODER_IMAGE_TAG: ghcr.io/coder/coder-preview:pr${{ steps.pr_number.outputs.PR_NUMBER }}
|
65 | 64 |
|
66 |
| - - name: Find Comment |
67 |
| - uses: peter-evans/find-comment@v2 |
68 |
| - id: fc |
69 |
| - with: |
70 |
| - issue-number: ${{ steps.pr_number.outputs.PR_NUMBER }} |
71 |
| - comment-author: "github-actions[bot]" |
72 |
| - body-includes: This deployment will be deleted when the PR is closed |
73 |
| - |
74 | 65 | - name: Comment on PR
|
75 | 66 | id: comment_id
|
76 | 67 | uses: peter-evans/create-or-update-comment@v3
|
77 | 68 | with:
|
78 |
| - comment-id: ${{ steps.fc.outputs.comment-id }} |
79 | 69 | issue-number: ${{ steps.pr_number.outputs.PR_NUMBER }}
|
80 |
| - edit-mode: replace |
81 | 70 | body: |
|
82 | 71 | :rocket: Deploying PR ${{ steps.pr_number.outputs.PR_NUMBER }} ...
|
83 | 72 | :warning: This deployment will be deleted when the PR is closed.
|
| 73 | + reactions: "-1" |
84 | 74 |
|
85 | 75 | build:
|
86 | 76 | needs: pr_commented
|
@@ -231,16 +221,28 @@ jobs:
|
231 | 221 | env:
|
232 | 222 | PR_DEPLOYMENT_ACCESS_URL: "https://pr${{ env.PR_NUMBER }}.${{ secrets.PR_DEPLOYMENTS_DOMAIN }}"
|
233 | 223 |
|
| 224 | + - name: Find Comment |
| 225 | + uses: peter-evans/find-comment@v2 |
| 226 | + id: fc |
| 227 | + with: |
| 228 | + issue-number: ${{ env.PR_NUMBER }} |
| 229 | + comment-author: "github-actions[bot]" |
| 230 | + body-includes: This deployment will be deleted when the PR is closed |
| 231 | + |
234 | 232 | - name: Comment on PR
|
235 | 233 | uses: peter-evans/create-or-update-comment@v3
|
236 | 234 | with:
|
237 | 235 | issue-number: ${{ env.PR_NUMBER }}
|
238 | 236 | edit-mode: replace
|
239 |
| - comment-id: ${{ needs.pr_commented.outputs.COMMENT_ID }} |
| 237 | + comment-id: ${{ steps.fc.outputs.comment-id }} |
240 | 238 | body: |
|
241 | 239 | :heavy_check_mark: Deployed PR ${{ env.PR_NUMBER }} successfully.
|
242 | 240 | :rocket: Access the deployment link [here](${{ env.PR_DEPLOYMENT_ACCESS_URL }}).
|
243 | 241 | :warning: This deployment will be deleted when the PR is closed.
|
244 |
| - reactions: "+1" |
| 242 | + reactions: | |
| 243 | + +1 |
| 244 | + rocket |
| 245 | + reactions-edit-mode: replace |
| 246 | + |
245 | 247 | env:
|
246 | 248 | PR_DEPLOYMENT_ACCESS_URL: "https://pr${{ env.PR_NUMBER }}.${{ secrets.PR_DEPLOYMENTS_DOMAIN }}"
|
0 commit comments