File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
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 . text)
71
- echo $latest_snapshot
70
+ latest_snapshot=$(echo " $xml_content" | xq '.content.data."content-item"' | jq -r 'sort_by(.lastModified) | last | . text' )
71
+ echo "Latest Selenium Snapshot: $latest_snapshot"
72
72
cd examples/java
73
73
mvn -B -U test -Dselenium.version="$latest_snapshot"
74
74
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 . text
85
- Write-Output $latest_snapshot
84
+ $latest_snapshot = $xml_content.Content | xq '.content.data.\"content-item\"' | jq -r 'sort_by(.lastModified) | last | . text'
85
+ Write-Output "Latest Selenium Snapshot: $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