1
0

html mail

This commit is contained in:
Marco Maatz 2025-01-16 12:39:31 +01:00
parent eeb2cb513b
commit 6f9d356a52

View File

@ -34,16 +34,20 @@ jobs:
- name: Create Email - name: Create Email
run: | run: |
echo "Subject: Neues Release [${{ env.GITHUB_REPOSITORY }}]" > email.txt echo "Subject: Neues Release [${{ env.GITHUB_REPOSITORY }}]" > email.html
echo "From: ${{ vars.SMTP_SENDER }}" > email.txt echo "From: ${{ vars.SMTP_SENDER }}" > email.html
echo "To: ${{ vars.SMTP_QA_RECIPIENT }}" >> email.txt echo "To: ${{ vars.SMTP_QA_RECIPIENT }}" >> email.html
echo "" >> email.txt echo "Content-Type: text/html; charset=UTF-8" >> email.html
echo "Ein neues Release für [${{ env.GITHUB_REPOSITORY }}] wurde erstellt." >> email.txt
echo "" >> email.txt
echo "Version: ${{ inputs.version }}" >> email.txt
echo "https://gitea.greyhound-software.com/greyhound/dashboard/milestone/${{ inputs.milestone }}" >> email.txt
echo "https://gitea.greyhound-software.com/greyhound/dashboard/releases/tag/${{ inputs.tag }}" >> email.txt
echo "" >> email.html
echo "<html>" >> email.html
echo "<body>" >> email.html
echo "<h1'>Ein neues Release für [${{ env.GITHUB_REPOSITORY }}] wurde erstellt.</h1>" >> email.html
echo "<p><strong>Version:</strong> ${{ inputs.version }}</p>" >> email.html
echo "<p><strong>Milestone:</strong> https://gitea.greyhound-software.com/greyhound/dashboard/milestone/${{ inputs.milestone }}</p>" >> email.html
echo "<p><strong>Release:</strong> https://gitea.greyhound-software.com/greyhound/dashboard/releases/tag/${{ inputs.tag }}</p>" >> email.html
echo "</body>" >> email.html
echo "</html>" >> email.html
- name: Send Email - name: Send Email
run: | run: |
msmtp --debug ${{ vars.SMTP_QA_RECIPIENT }} < email.txt msmtp --debug ${{ vars.SMTP_QA_RECIPIENT }} < email.html