You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
fairemail-apk/email.sh

19 lines
476 B

#!/bin/sh
set -eu
IN=$(jq . <&0)
VERSION=$(echo $IN | jq -r .tag_name)
APK_FILENAME=$(echo $IN | jq -r .file_name)
export VERSION
export DATE="$(date +'%a, %-d %b %Y %H:%M:%S %z')"
export HOSTNAME="$(hostname).local" \
export RELEASE_URL="https://sillywalk.de/releases/$APK_FILENAME"
envsubst < templates/notification.email | curl \
--mail-from android-labs@envy.local \
--mail-rcpt fairemail-release@sillywalk.de \
--upload-file - \
smtp://mail.uberc.at