File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
.github/actions/get-latest-upstream Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ runs:
22
22
AUTH_HEADER="Authorization: token ${{ inputs.gh_cli_token }}"
23
23
if [ "${{ inputs.release }}" = "true" ]; then
24
24
echo "Getting the latest stable release."
25
- RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[] | select(.prerelease == false)] | .[0].tag_name')
25
+ RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[]? | select(.prerelease == false)] | .[0].tag_name')
26
26
else
27
27
echo "Getting the latest Nightly release."
28
- RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[] | select(.prerelease == true)] | .[0].tag_name' || echo "")
29
- if [ -z "${RELEASE}" ]; then
28
+ RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[]? | select(.prerelease == true)] | .[0].tag_name' || echo "")
29
+ if [ -z "${RELEASE}" || "${RELEASE}" = "null" ]; then
30
30
echo "Nightly release not found, getting the latest stable release."
31
- RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[] | select(.prerelease == false)] | .[0].tag_name')
31
+ RELEASE=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases | jq -r '[.[]? | select(.prerelease == false)] | .[0].tag_name')
32
32
fi
33
33
fi
34
34
jar_file=$(curl -s -H "$AUTH_HEADER" https://api.github.com/repos/SeleniumHQ/selenium/releases/tags/${RELEASE} | jq -r '.assets[] | select(.name | endswith(".jar")) | .name' | tail -n 1)
You can’t perform that action at this time.
0 commit comments