File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 67
67
command : |
68
68
pip install yq
69
69
xml_content=$(curl -sf https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/)
70
- latest_snapshot=$(echo $xml_content | xq '.content.data."content-item"' | jq -r 'sort_by(.lastModified) | reverse | .[0] | . text' )
70
+ latest_snapshot=$(echo $xml_content | xq '.content.data."content-item"' | jq -r . text)
71
71
echo $latest_snapshot
72
72
cd examples/java
73
73
mvn -B -U test -Dselenium.version="$latest_snapshot"
81
81
command : |
82
82
pip install yq
83
83
$xml_content = Invoke-WebRequest -Uri "https://oss.sonatype.org/service/local/repositories/snapshots/content/org/seleniumhq/selenium/selenium-java/"
84
- $latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r 'sort_by(.lastModified) | reverse | .[0] | . text'
84
+ $latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r . text
85
85
Write-Output $latest_snapshot
86
86
cd examples/java
87
87
mvn -B -U test "-Dselenium.version=$latest_snapshot"
You can’t perform that action at this time.
0 commit comments