You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build-staging-and-prod.yml
+30-54Lines changed: 30 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -182,64 +182,40 @@ jobs:
182
182
183
183
- name: Send Slack notification (success)
184
184
if: steps.status.outputs.is_success == 'true'
185
-
uses: slackapi/slack-github-action@v1
185
+
uses: slackapi/slack-github-action@v2.1.1
186
186
with:
187
-
webhookUrl: ${{ secrets.SLACK_WEBHOOK_URL }}
187
+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
188
+
webhook-type: incoming-webhook
188
189
payload: |
189
-
{
190
-
"text": "✅ Archive Site updated successfully",
191
-
"blocks": [
192
-
{
193
-
"type": "section",
194
-
"text": {
195
-
"type": "mrkdwn",
196
-
"text": "✅ *Archive Site updated successfully*\n\nYour changes have been deployed to the staging site:\n<${{ steps.pages_url.outputs.url }}|View staging site>"
197
-
}
198
-
}
199
-
]
200
-
}
190
+
text: "✅ Site updated successfully"
191
+
blocks:
192
+
- type: section
193
+
text:
194
+
type: mrkdwn
195
+
text: "✅ *Site updated successfully*\n\nYour changes have been deployed to the staging site:\n<${{ steps.pages_url.outputs.url }}|View staging site>"
0 commit comments