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.
14 lines
417 B
14 lines
417 B
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
RELEASES=$(curl https://api.github.com/repos/M66B/FairEmail/releases)
|
|
|
|
# FIXME Test whether asset name matches "full-github"
|
|
LATEST_GITHUB_RELEASE=$(echo $RELEASES | jq '[.[] | select(.assets | length > 0)] | first')
|
|
if [ "$LATEST_GITHUB_RELEASE" == null ]; then
|
|
echo "No github release eavailable"
|
|
exit 1
|
|
fi
|
|
|
|
echo $LATEST_GITHUB_RELEASE | jq -r '{tag_name, file_name: .assets[0].name}'
|
|
|