mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Fix auto-updater (#221)
This commit is contained in:
parent
79f1bca566
commit
3d02f4fefd
1 changed files with 4 additions and 2 deletions
6
.github/workflows/updater.sh
vendored
6
.github/workflows/updater.sh
vendored
|
@ -36,7 +36,9 @@ echo "Current version: $current_version"
|
|||
echo "Latest release from upstream: $version"
|
||||
echo "VERSION=$version" >> $GITHUB_ENV
|
||||
echo "RELEASE=$release" >> $GITHUB_ENV
|
||||
echo "DESCRIPTION=$description" >> $GITHUB_ENV
|
||||
echo "DESCRIPTION<<EOF" >> $GITHUB_ENV
|
||||
echo "$description" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
# For the time being, let's assume the script will fail
|
||||
echo "PROCEED=false" >> $GITHUB_ENV
|
||||
|
||||
|
@ -70,7 +72,7 @@ for arch in ${architectures[@]}; do
|
|||
tempdir="$(mktemp -d)"
|
||||
|
||||
# Download sources and calculate checksum
|
||||
filename=${asset_url##*/}
|
||||
filename="asset-$arch.zip"
|
||||
curl --silent -4 -L $asset_url -o "$tempdir/$filename"
|
||||
checksum=$(sha256sum "$tempdir/$filename" | head -c 64)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue