html mail
This commit is contained in:
		| @@ -34,16 +34,20 @@ jobs: | ||||
|  | ||||
|       - name: Create Email | ||||
|         run: | | ||||
|           echo "Subject: Neues Release [${{ env.GITHUB_REPOSITORY  }}]" > email.txt | ||||
|           echo "From: ${{ vars.SMTP_SENDER }}" > email.txt | ||||
|           echo "To: ${{ vars.SMTP_QA_RECIPIENT }}" >> email.txt | ||||
|           echo "" >> email.txt | ||||
|           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 "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 "" >> 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 | ||||
|         run: | | ||||
|           msmtp --debug ${{ vars.SMTP_QA_RECIPIENT }} < email.txt | ||||
|           msmtp --debug ${{ vars.SMTP_QA_RECIPIENT }} < email.html | ||||
|   | ||||
		Reference in New Issue
	
	Block a user