File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ get_stable_release_tag() {
3030 release_tag=" $( curl -sL https://www.php.net/releases/feed.php | grep -Po -m 1 " php-(${PHP_VERSION// ./ \\ .} \.[0-9]+)" | head -n 1) "
3131 echo " ${release_tag:- $(curl -sL https:// www.php.net/ releases | grep -Po " <h2>\K${PHP_VERSION// ./ \\ .} \.[0-9]+" | head -n1 | sed ' s/^/php-/' )} "
3232 else
33- curl -H " Authorization: Bearer $GITHUB_TOKEN " -sL " https://api.github.com/repos/php/php-src/git/matching-refs/tags%2Fphp-$PHP_VERSION ." | grep -Eo " php-[0-9]+\.[0-9]+\.[0-9]+\" " | tail -1 | cut -d ' "' -f 1
33+ curl -H " Authorization: Bearer $GITHUB_TOKEN " -sL " https://api.github.com/repos/php/php-src/git/matching-refs/tags%2Fphp-$PHP_VERSION ." | grep -Eo " php-[0-9]+\.[0-9]+\.[0-9]+\" " | sort -V | tail -1 | cut -d ' "' -f 1
3434 fi
3535}
3636
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ get_stable_release_tag() {
77 release_tag=" $( curl -sL https://www.php.net/releases/feed.php | grep -Po -m 1 " php-(${php_version// ./ \\ .} \.[0-9]+)" | head -n 1) "
88 echo " ${release_tag:- $(curl -sL https:// www.php.net/ releases | grep -Po " <h2>\K${php_version// ./ \\ .} \.[0-9]+" | head -n1 | sed ' s/^/php-/' )} "
99 else
10- curl -H " Authorization: Bearer $GITHUB_TOKEN " -sL " https://api.github.com/repos/php/php-src/git/matching-refs/tags%2Fphp-$php_version ." | grep -Eo " php-[0-9]+\.[0-9]+\.[0-9]+\" " | tail -1 | cut -d ' "' -f 1
10+ curl -H " Authorization: Bearer $GITHUB_TOKEN " -sL " https://api.github.com/repos/php/php-src/git/matching-refs/tags%2Fphp-$php_version ." | grep -Eo " php-[0-9]+\.[0-9]+\.[0-9]+\" " | sort -V | tail -1 | cut -d ' "' -f 1
1111 fi
1212}
1313
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ get_stable_release_tag() {
1414 release_tag=" $( curl -sL https://www.php.net/releases/feed.php | grep -Po -m 1 " php-(${PHP_VERSION// ./ \\ .} \.[0-9]+)" | head -n 1) "
1515 echo " ${release_tag:- $(curl -sL https:// www.php.net/ releases | grep -Po " ${PHP_VERSION// ./ \\ .} \.[0-9]+" | head -n1 | sed ' s/^/php-/' )} "
1616 else
17- curl -H " Authorization: Bearer $GITHUB_TOKEN " -sL " https://api.github.com/repos/php/php-src/git/matching-refs/tags%2Fphp-$PHP_VERSION ." | grep -Eo " php-[0-9]+\.[0-9]+\.[0-9]+\" " | tail -1 | cut -d ' "' -f 1
17+ curl -H " Authorization: Bearer $GITHUB_TOKEN " -sL " https://api.github.com/repos/php/php-src/git/matching-refs/tags%2Fphp-$PHP_VERSION ." | grep -Eo " php-[0-9]+\.[0-9]+\.[0-9]+\" " | sort -V | tail -1 | cut -d ' "' -f 1
1818 fi
1919}
2020
You can’t perform that action at this time.
0 commit comments