Some checks failed
Gitea Actions Build / build and releases (push) Has been cancelled
26 lines
638 B
Bash
26 lines
638 B
Bash
curl -o releases.json https://git.mingliqiye.com/api/v1/repos/Actions/com.mingliqiye.gitea.releases/releases
|
|
|
|
FILENAME=$(python3 -c "
|
|
import json;
|
|
with open('releases.json') as f:
|
|
data = json.load(f)
|
|
print(data[0]['assets'][0]['name'])
|
|
")
|
|
|
|
DOWNLOADURL=$(python3 -c "
|
|
import json;
|
|
with open('releases.json') as f:
|
|
data = json.load(f)
|
|
print(data[0]['assets'][0]['browser_download_url'])
|
|
")
|
|
|
|
echo "fileName:$FILENAME"
|
|
echo "BrowserDownloadUrl:$DOWNLOADURL"
|
|
echo "Downloading ... $FILENAME"
|
|
|
|
curl -O "$DOWNLOADURL"
|
|
mv "$FILENAME" com.mingliqiye.gitea.releases.jar
|
|
rm releases.json
|
|
ls
|
|
echo com.mingliqiye.gitea.releases.jar Downloaded
|