From 47527baf3dcbd5a32ff4ef457f267c882367ea99 Mon Sep 17 00:00:00 2001 From: juliusdw Date: Tue, 30 Apr 2024 21:48:17 +0200 Subject: [PATCH] ADD: email step --- .github/workflows/create-user-mongo-db.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/create-user-mongo-db.yml b/.github/workflows/create-user-mongo-db.yml index c067915..d7c745f 100644 --- a/.github/workflows/create-user-mongo-db.yml +++ b/.github/workflows/create-user-mongo-db.yml @@ -47,3 +47,15 @@ jobs: shell: bash run: | echo "${{ steps.setup.outputs.connection-string }}" + - name: Send mail + uses: dawidd6/action-send-mail@v3 + with: + server_address: mail.your-server.de + server_port: 465 + secure: true + username: code-idp-bot@421337.de + password: ${{secrets.MAIL_PASSWORD}} + subject: CODE IDP Database Created! ✨ + to: ${{ github.event.inputs.email }} + from: The friendly code idp bot + body: 'Your database has been created! 🎉 Your DB ID and Username is: ${{ steps.generate-db-id.outputs.number }} The Password is: ${{ steps.generate-db-pw.outputs.password }} The connection string is: ${{ steps.setup.outputs.connection-string }}'