Include beta, alphas and RCs

It's handy to have available all the versions.

Signed-off-by: Alexandre Eher <alexandre@eher.com.br>
This commit is contained in:
Alexandre Eher
2019-09-24 21:38:17 +02:00
parent 932907341e
commit d1a8969451

View File

@@ -9,7 +9,6 @@ fi
versions=$(curl $auth -s https://api.github.com/repos/php/php-src/git/refs/tags | # Fetch all tags
grep '"ref":' | # Filter by refs
grep 'php-' | # Filter only those related to php-xxxx
grep -Ev "beta|alpha|RC" | # Remove betas, alphas and RCs
sed 's/\"ref\"://' | # Remove '"ref":'
sed 's/\"refs\/tags\/php-//' | # Remove '"refs/tags/php-"'
sed 's/\",//') # Remove last '",'