Skip to content

Commit 56145b2

Browse files
committed
ci: send deployment notifications via deployoholics webhook
1 parent 8ab2a65 commit 56145b2

File tree

3 files changed

+15
-47
lines changed

3 files changed

+15
-47
lines changed

.github/actions/send-wire-message/action.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/publish-and-deploy-webapp.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -353,19 +353,16 @@ jobs:
353353
needs: create_gh_release
354354

355355
steps:
356-
- name: Checkout repository for local actions
357-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
358-
with:
359-
fetch-depth: 1
360-
361356
- name: Announce staging release
362357
if: ${{ needs.create_gh_release.outputs.release_url }}
363-
uses: ./.github/actions/send-wire-message
358+
uses: 8398a7/action-slack@293f8dc0f9731ac35321056641cdef895f4f65f8
359+
env:
360+
SLACK_WEBHOOK_URL: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
364361
with:
365-
email: ${{secrets.WIRE_BOT_EMAIL}}
366-
password: ${{secrets.WIRE_BOT_PASSWORD}}
367-
conversation: '697c93e8-0b13-4204-a35e-59270462366a'
368-
message: 'New release done ([full changelog](${{ needs.create_gh_release.outputs.release_url }})) 🚀'
362+
status: success
363+
text: |
364+
✅ New release done ✅
365+
**Changelog:** ${{ needs.create_gh_release.outputs.release_url }}
369366
370367
notify_deployment_failure:
371368
name: 'Notify deployment failure to wire chats'

.github/workflows/redeploy-production-from-tag.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,18 +146,16 @@ jobs:
146146
if: ${{ needs.deploy_to_production.result == 'success' }}
147147

148148
steps:
149-
- name: Checkout repository for local actions
150-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
151-
with:
152-
fetch-depth: 1
153-
154149
- name: Announce production redeploy
155-
uses: ./.github/actions/send-wire-message
150+
uses: 8398a7/action-slack@293f8dc0f9731ac35321056641cdef895f4f65f8
151+
env:
152+
SLACK_WEBHOOK_URL: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
156153
with:
157-
email: ${{ secrets.WIRE_BOT_EMAIL }}
158-
password: ${{ secrets.WIRE_BOT_PASSWORD }}
159-
conversation: '697c93e8-0b13-4204-a35e-59270462366a'
160-
message: 'Production redeploy completed for tag ${{ needs.validate_request.outputs.tag }} by ${{ github.actor }}. Commit: [${{ needs.build_artifact.outputs.commit_sha }}](${{ needs.build_artifact.outputs.commit_url }}) — ${{ needs.build_artifact.outputs.commit_subject }}'
154+
status: success
155+
text: |
156+
✅ Production redeploy completed for tag ${{ needs.validate_request.outputs.tag }} ✅
157+
**Triggered by:** ${{ github.actor }}
158+
**Commit:** [${{ needs.build_artifact.outputs.commit_sha }}](${{ needs.build_artifact.outputs.commit_url }}) — ${{ needs.build_artifact.outputs.commit_subject }}
161159
162160
notify_redeploy_failure:
163161
name: Notify redeploy failure

0 commit comments

Comments
 (0)