@@ -109,17 +109,20 @@ jobs:
109
109
ref : refs/pull/${{ github.event.issue.number }}/merge
110
110
111
111
- name : Comment deployment started
112
+ id : deployment-comment
112
113
uses : peter-evans/create-or-update-comment@v3
113
114
with :
114
115
issue-number : ${{ github.event.issue.number }}
115
116
body : |
116
- 🚀 **Migration deployment started **
117
+ 🚀 **Migration deployment starting **
117
118
118
119
**Environment:** `${{ needs.parse-command.outputs.environment }}`
119
120
**PR:** #${{ github.event.issue.number }}
120
121
**Triggered by:** @${{ github.event.comment.user.login }}
121
122
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.
123
126
124
127
- name : Create rollout plan
125
128
id : create-rollout
@@ -163,13 +166,13 @@ jobs:
163
166
echo "rollout=$ROLLOUT" >> $GITHUB_OUTPUT
164
167
echo "base-url=$BASE_URL" >> $GITHUB_OUTPUT
165
168
166
- - name : Comment rollout details
167
- id : rollout-comment
169
+ - name : Update comment with rollout details
168
170
uses : peter-evans/create-or-update-comment@v3
169
171
with :
170
- issue-number : ${{ github.event.issue.number }}
172
+ comment-id : ${{ steps.deployment-comment.outputs.comment-id }}
173
+ edit-mode : replace
171
174
body : |
172
- 🚀 **Migration deployment starting **
175
+ 🚀 **Migration deployment in progress **
173
176
174
177
**Environment:** `${{ needs.parse-command.outputs.environment }}`
175
178
**PR:** #${{ github.event.issue.number }}
@@ -182,6 +185,8 @@ jobs:
182
185
183
186
Executing database changes...
184
187
188
+ Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.
189
+
185
190
- name : Execute rollout
186
191
env :
187
192
BYTEBASE_TARGET_STAGE : ${{ needs.parse-command.outputs.stage }}
@@ -200,7 +205,8 @@ jobs:
200
205
if : success()
201
206
uses : peter-evans/create-or-update-comment@v3
202
207
with :
203
- comment-id : ${{ steps.rollout-comment.outputs.comment-id }}
208
+ comment-id : ${{ steps.deployment-comment.outputs.comment-id }}
209
+ edit-mode : replace
204
210
body : |
205
211
✅ **Migration deployment completed successfully**
206
212
@@ -215,11 +221,14 @@ jobs:
215
221
216
222
Database schema has been successfully updated.
217
223
224
+ Please check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.
225
+
218
226
- name : Comment deployment failure
219
227
if : failure()
220
228
uses : peter-evans/create-or-update-comment@v3
221
229
with :
222
- comment-id : ${{ steps.rollout-comment.outputs.comment-id }}
230
+ comment-id : ${{ steps.deployment-comment.outputs.comment-id }}
231
+ edit-mode : replace
223
232
body : |
224
233
❌ **Migration deployment failed**
225
234
0 commit comments