diff --git a/ci-git-tag-compared-to-release.sh b/ci-git-tag-compared-to-release.sh index 35a2ecc..bd744f0 100644 --- a/ci-git-tag-compared-to-release.sh +++ b/ci-git-tag-compared-to-release.sh @@ -1,13 +1,13 @@ latest_release=$(curl \ - --cert /etc/pki/tls/certs/client.crt \ - --key /etc/pki/tls/private/client.key \ - --header 'Content-Type: application/json' \ - --silent \ - https://my.api.com/component/foo/releases | \ - grep -Eo '"version": "[[:digit:]]+' | \ - cut -d : -f 2 | \ - cut -d '"' -f 2 | \ - head -n 1) + --cert /etc/pki/tls/certs/client.crt \ + --key /etc/pki/tls/private/client.key \ + --header 'Content-Type: application/json' \ + --silent \ + https://my.api.com/component/foo/releases | \ + grep -Eo '"version": "[[:digit:]]+' | \ + cut -d : -f 2 | \ + cut -d '"' -f 2 | \ + head -n 1) tag=$(git tag | tail -n 1)