Skip to content

Commit bc92a2d

Browse files
authored
[Infrastructure] Fixes the dependency update script for selenium and playwright (#60089)
1 parent 19853b0 commit bc92a2d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Diff for: .github/workflows/update-selenium-and-playwright-dependencies.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
pull-requests: write
1212

1313
jobs:
14-
update-jquery-validate:
14+
update-selenium-and-playwright:
1515
runs-on: ubuntu-latest
1616

1717
steps:

Diff for: eng/scripts/update-selenium-and-playwright-versions.ps1

+8-5
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,12 @@ exit 1
7979
}
8080

8181
# Check if there are changes
82-
if (-not (git diff --cached --quiet)) {
82+
git diff --quiet
83+
if ($LASTEXITCODE -eq 0) {
8384
Write-Host "No changes to commit."
84-
exit 0
85+
# exit 0
86+
}else {
87+
Write-Host "Updating the version of packages";
8588
}
8689

8790
# Create a new branch
@@ -93,9 +96,9 @@ git add eng/Versions.props src/Components/benchmarkapps/Wasm.Performance/dockerf
9396
# Commit the changes
9497
$commitMessage = @"
9598
[Infrastructure] Update Selenium and Playwright dependencies $(Get-Date -Format "yyyy-MM-dd")
96-
* Updated Playwright version to $($versions["Microsoft.Playwright"])
97-
* Updated Selenium version to $($versions["Selenium.Support"])
98-
* Updated Selenium version to $($versions["Selenium.WebDriver"])
99+
* Updated Microsoft.Playwright version to $($versions["Microsoft.Playwright"])
100+
* Updated Selenium.Support version to $($versions["Selenium.Support"])
101+
* Updated Selenium.WebDriver version to $($versions["Selenium.WebDriver"])
99102
"@
100103
git commit -m $commitMessage
101104

0 commit comments

Comments
 (0)