mirror of
https://github.com/letic/Shell-Scripts.git
synced 2024-09-28 05:56:04 +00:00
Update ci-git-tag-compared-to-release.sh
This commit is contained in:
parent
4d8f435bac
commit
8058a73e60
@ -1,13 +1,13 @@
|
|||||||
latest_release=$(curl \
|
latest_release=$(curl \
|
||||||
--cert /etc/pki/tls/certs/client.crt \
|
--cert /etc/pki/tls/certs/client.crt \
|
||||||
--key /etc/pki/tls/private/client.key \
|
--key /etc/pki/tls/private/client.key \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--silent \
|
--silent \
|
||||||
https://my.api.com/component/foo/releases | \
|
https://my.api.com/component/foo/releases | \
|
||||||
grep -Eo '"version": "[[:digit:]]+' | \
|
grep -Eo '"version": "[[:digit:]]+' | \
|
||||||
cut -d : -f 2 | \
|
cut -d : -f 2 | \
|
||||||
cut -d '"' -f 2 | \
|
cut -d '"' -f 2 | \
|
||||||
head -n 1)
|
head -n 1)
|
||||||
|
|
||||||
tag=$(git tag | tail -n 1)
|
tag=$(git tag | tail -n 1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user