From c701e1e6423286552227b206ff6dddfa1a028235 Mon Sep 17 00:00:00 2001 From: Hunia Fatima Date: Tue, 22 Oct 2024 17:29:13 +0500 Subject: [PATCH] fix: remove notifications code --- .github/workflows/push-ecommerce-image.yaml | 26 +++++++++++---------- .github/workflows/push-registrar-image.yaml | 26 ++++++++++----------- 2 files changed, 27 insertions(+), 25 deletions(-) diff --git a/.github/workflows/push-ecommerce-image.yaml b/.github/workflows/push-ecommerce-image.yaml index 2f6447c..255866a 100644 --- a/.github/workflows/push-ecommerce-image.yaml +++ b/.github/workflows/push-ecommerce-image.yaml @@ -45,15 +45,17 @@ jobs: tags: edxops/ecommerce-dev:${{ steps.get-tag-name.outputs.result }} platforms: linux/amd64,linux/arm64 - - name: Send failure notification - if: failure() - uses: dawidd6/action-send-mail@v3 - with: - server_address: email-smtp.us-east-1.amazonaws.com - server_port: 465 - username: ${{secrets.edx_smtp_username}} - password: ${{secrets.edx_smtp_password}} - subject: Push Image to docker.io/edxops failed in ecommerce - to: team-cosmonauts@edx.org - from: github-actions - body: Push Image to docker.io/edxops for ecommerce failed! For details see "github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + +# Commenting this as we don't have email for red ventures yet +# - name: Send failure notification +# if: failure() +# uses: dawidd6/action-send-mail@v3 +# with: +# server_address: email-smtp.us-east-1.amazonaws.com +# server_port: 465 +# username: ${{secrets.edx_smtp_username}} +# password: ${{secrets.edx_smtp_password}} +# subject: Push Image to docker.io/edxops failed in ecommerce +# to: team-cosmonauts@edx.org +# from: github-actions +# body: Push Image to docker.io/edxops for ecommerce failed! For details see "github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" diff --git a/.github/workflows/push-registrar-image.yaml b/.github/workflows/push-registrar-image.yaml index 1aff873..fb70221 100644 --- a/.github/workflows/push-registrar-image.yaml +++ b/.github/workflows/push-registrar-image.yaml @@ -43,16 +43,16 @@ jobs: push: true target: dev tags: edxops/registrar-dev:${{ steps.get-tag-name.outputs.result }} -# Commenting this as we don't have email for red ventures yet -# - name: Send failure notification -# if: failure() -# uses: dawidd6/action-send-mail@v3 -# with: -# server_address: email-smtp.us-east-1.amazonaws.com -# server_port: 465 -# username: ${{secrets.edx_smtp_username}} -# password: ${{secrets.edx_smtp_password}} -# subject: Push Image to docker.io/edxops failed in registrar -# to: team-cosmonauts@edx.org -# from: github-actions -# body: Push Image to docker.io/edxops for registrar failed! For details see "github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" + + - name: Send failure notification + if: failure() + uses: dawidd6/action-send-mail@v3 + with: + server_address: email-smtp.us-east-1.amazonaws.com + server_port: 465 + username: ${{secrets.edx_smtp_username}} + password: ${{secrets.edx_smtp_password}} + subject: Push Image to docker.io/edxops failed in registrar + to: team-cosmonauts@edx.org + from: github-actions + body: Push Image to docker.io/edxops for registrar failed! For details see "github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"