name: Send QA Mail on: workflow_call: inputs: version: required: true type: string milestone: required: true type: string tag: required: true type: string jobs: Mail: runs-on: ubuntu-latest steps: - name: Install Mail Client run: sudo apt-get update && sudo apt-get install -y msmtp - name: Configure msmtp run: | echo "defaults" > ~/.msmtprc echo "auth on" >> ~/.msmtprc echo "tls on" >> ~/.msmtprc echo "tls_starttls on" >> ~/.msmtprc echo "account default" >> ~/.msmtprc echo "host ${{ vars.SMTP_HOST }}" >> ~/.msmtprc echo "port ${{ vars.SMTP_PORT }}" >> ~/.msmtprc echo "user ${{ vars.SMTP_USER }}" >> ~/.msmtprc echo "password ${{ vars.SMTP_PASSWORD }}" >> ~/.msmtprc echo "from ${{ vars.SMTP_SENDER }}" >> ~/.msmtprc chmod 600 ~/.msmtprc - name: Create Email run: | echo "Subject: Neues Release: [${{ env.GITHUB_REPOSITORY }}]" > email.html echo "From: ${{ vars.SMTP_SENDER }}" >> email.html echo "To: ${{ vars.SMTP_QA_RECIPIENT }}" >> email.html echo "Content-Type: text/html; charset=UTF-8" >> email.html echo "Mime-Version: 1.0" >> email.html echo "" >> email.html echo "" >> email.html echo "" >> email.html echo "

Ein neues Release für [${{ env.GITHUB_REPOSITORY }}] wurde erstellt.

" >> email.html echo "

Version: ${{ inputs.version }}

" >> email.html echo "

Milestone: ${{ inputs.milestone }}

" >> email.html echo "

Liste der gelösten Issues: Issues

" >> email.html echo "" >> email.html echo "" >> email.html - name: Send Email run: | msmtp --debug ${{ vars.SMTP_QA_RECIPIENT }} < email.html