Commit 980fa869 authored by CapsLock's avatar CapsLock
Browse files

Update .gitlab-ci.yml

parent 8412ef80
Pipeline #766 failed with stage
in 120 minutes and 53 seconds
......@@ -16,7 +16,7 @@ patch_and_build_signal:
script:
- apk add git curl jq
- apk add openjdk11-jdk # (jarsigner)
- "export LATEST_SIGNAL_TAG=\"$(curl https://api.github.com/repos/signalapp/Signal-Android/tags | jq -r '.[] .name' | sort -nr | head -n1)\""
- "export LATEST_SIGNAL_TAG=\"$(curl https://api.github.com/repos/signalapp/Signal-Android/tags | jq -r '.[] .name' | sed '/-/!{s/$/_/}' | sort -V | sed 's/_$//'|tail -n1)\""
#- "export LATEST_SIGNAL_TAG=\"$(git ls-remote --tags https://github.com/signalapp/Signal-Android | sed 's|.*/\\(.*\\)$|\\1|' | grep -v '\\^' | sort -t. -k1,1nr -k2,2nr -k3,3nr|grep -e '^v.*' | head -n 1)\""
- "if [[ -z \"$LATEST_SIGNAL_TAG\" ]]; then exit 2; fi"
- "echo \"Latest git version is $LATEST_SIGNAL_TAG\""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment