@@ -109,17 +109,20 @@ jobs:
109109 ref : refs/pull/${{ github.event.issue.number }}/merge
110110
111111 - name : Comment deployment started
112+ id : deployment-comment
112113 uses : peter-evans/create-or-update-comment@v3
113114 with :
114115 issue-number : ${{ github.event.issue.number }}
115116 body : |
116- 🚀 **Migration deployment started **
117+ 🚀 **Migration deployment starting **
117118
118119 **Environment:** `${{ needs.parse-command.outputs.environment }}`
119120 **PR:** #${{ github.event.issue.number }}
120121 **Triggered by:** @${{ github.event.comment.user.login }}
121122
122- Deploying database changes...
123+ Creating rollout plan...
124+
125+ Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.
123126
124127 - name : Create rollout plan
125128 id : create-rollout
@@ -163,13 +166,13 @@ jobs:
163166 echo "rollout=$ROLLOUT" >> $GITHUB_OUTPUT
164167 echo "base-url=$BASE_URL" >> $GITHUB_OUTPUT
165168
166- - name : Comment rollout details
167- id : rollout-comment
169+ - name : Update comment with rollout details
168170 uses : peter-evans/create-or-update-comment@v3
169171 with :
170- issue-number : ${{ github.event.issue.number }}
172+ comment-id : ${{ steps.deployment-comment.outputs.comment-id }}
173+ edit-mode : replace
171174 body : |
172- 🚀 **Migration deployment starting **
175+ 🚀 **Migration deployment in progress **
173176
174177 **Environment:** `${{ needs.parse-command.outputs.environment }}`
175178 **PR:** #${{ github.event.issue.number }}
@@ -182,6 +185,8 @@ jobs:
182185
183186 Executing database changes...
184187
188+ Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.
189+
185190 - name : Execute rollout
186191 env :
187192 BYTEBASE_TARGET_STAGE : ${{ needs.parse-command.outputs.stage }}
@@ -200,7 +205,8 @@ jobs:
200205 if : success()
201206 uses : peter-evans/create-or-update-comment@v3
202207 with :
203- comment-id : ${{ steps.rollout-comment.outputs.comment-id }}
208+ comment-id : ${{ steps.deployment-comment.outputs.comment-id }}
209+ edit-mode : replace
204210 body : |
205211 ✅ **Migration deployment completed successfully**
206212
@@ -215,11 +221,14 @@ jobs:
215221
216222 Database schema has been successfully updated.
217223
224+ Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.
225+
218226 - name : Comment deployment failure
219227 if : failure()
220228 uses : peter-evans/create-or-update-comment@v3
221229 with :
222- comment-id : ${{ steps.rollout-comment.outputs.comment-id }}
230+ comment-id : ${{ steps.deployment-comment.outputs.comment-id }}
231+ edit-mode : replace
223232 body : |
224233 ❌ **Migration deployment failed**
225234
0 commit comments