Skip to content
Merged
25 changes: 12 additions & 13 deletions .github/actions/notify-deployoholics/action.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
---
name: Notify Deployoholics
description: Send a message to the Deployoholics Wire channel.
description: Send a message to the Deployoholics Wire channel using the Deployoholics webhook and token.

inputs:
webhook-url:
description: Deployoholics Wire webhook URL.
required: true
text:
description: Wire message text.
required: true
status:
description: Wire notification status.
required: false
default: failure
deployoholics-webhook-url:
description: Wire webhook URL to notify Deployoholics conversation.
required: true
deployoholics-token:
description: GitHub Actions token to notify Deployoholics conversation.
required: true

runs:
using: composite
steps:
- name: Send Wire notification
uses: 8398a7/action-slack@293f8dc0f9731ac35321056641cdef895f4f65f8
env:
SLACK_WEBHOOK_URL: ${{ inputs.webhook-url }}
uses: wireapp/github-app/.github/actions/notify-wire@3a9c9d7e71d96d391951429c1d1bfbbee081ed8c
with:
status: ${{ inputs.status }}
text: ${{ inputs.text }}
webhook-url: ${{ inputs.deployoholics-webhook-url }}
token: ${{ inputs.deployoholics-token }}
text: |-
${{ inputs.text }}
130 changes: 0 additions & 130 deletions .github/workflows/e2e-tests-nightly.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/precommit-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
WEBTEAM_AWS_ACCESS_KEY_ID: ${{ secrets.WEBTEAM_AWS_ACCESS_KEY_ID }}
WEBTEAM_AWS_SECRET_ACCESS_KEY: ${{ secrets.WEBTEAM_AWS_SECRET_ACCESS_KEY }}
WIRE_DEPLOYOHOLICS_WEBHOOK_URL: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
WIRE_DEPLOYOHOLICS_TOKEN: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}

run_e2e_tests:
name: Playwright Critical Flow
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/precommit-slot-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ on:
required: true
WIRE_DEPLOYOHOLICS_WEBHOOK_URL:
required: false
WIRE_DEPLOYOHOLICS_TOKEN:
required: false
TESTINY_API_KEY:
required: false
outputs:
Expand Down Expand Up @@ -215,8 +217,8 @@ jobs:
- name: Announce failed critical flow
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: failure
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
❌ Playwright Critical Flow failed ❌

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ jobs:
- name: Announce main delivery failure
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: failure
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
❌ Main delivery failed ❌
**Main commit:** ${{ github.sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/redeploy-production-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ jobs:
- name: Announce production redeploy failure
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: failure
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
❌ Production redeploy failed for tag ${{ needs.validate_request.outputs.tag }} ❌
**Triggered by:** ${{ github.actor }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,8 @@ jobs:
- name: Announce successful Beta release
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: success
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
✅ WebApp Beta release successfully deployed ✅

Expand Down Expand Up @@ -822,8 +822,8 @@ jobs:
- name: Announce successful release E2E gate
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: success
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
✅ Release E2E system gate passed ✅

Expand Down Expand Up @@ -1339,8 +1339,8 @@ jobs:
- name: Announce successful Production release
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: success
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
✅ WebApp Production release successfully completed ✅

Expand Down Expand Up @@ -1535,8 +1535,8 @@ jobs:
- name: Announce release failure
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: failure
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
${{ env.POST_PRODUCTION_SYNCHRONIZATION_FAILURE == 'true' && '⚠️ Production release succeeded; WebApp version synchronization bookkeeping is incomplete ⚠️' || '❌ WebApp release failed ❌' }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/repair-production-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ jobs:
- name: Announce Production repair failure
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: failure
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
❌ Production distribution repair failed ❌

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rollback-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ jobs:
- name: Announce Production rollback failure
uses: ./.github/actions/notify-deployoholics
with:
webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
status: failure
deployoholics-webhook-url: ${{ secrets.WIRE_DEPLOYOHOLICS_WEBHOOK_URL }}
deployoholics-token: ${{ secrets.WIRE_DEPLOYOHOLICS_TOKEN }}
text: |
Production rollback failed for tag ${{ needs.validate_request.outputs.production_tag || inputs.production_tag }}
Webapp version: ${{ needs.build_artifact.outputs.artifact_version || 'unavailable' }}
Expand Down
Loading