diff --git a/.github/workflows/update-selenium-and-playwright-dependencies.yml b/.github/workflows/update-selenium-and-playwright-dependencies.yml index d9b9660919d0..5356372c300e 100644 --- a/.github/workflows/update-selenium-and-playwright-dependencies.yml +++ b/.github/workflows/update-selenium-and-playwright-dependencies.yml @@ -11,7 +11,7 @@ permissions: pull-requests: write jobs: - update-jquery-validate: + update-selenium-and-playwright: runs-on: ubuntu-latest steps: diff --git a/eng/scripts/update-selenium-and-playwright-versions.ps1 b/eng/scripts/update-selenium-and-playwright-versions.ps1 index fbdcfe603ea2..d0bbef6b10fb 100644 --- a/eng/scripts/update-selenium-and-playwright-versions.ps1 +++ b/eng/scripts/update-selenium-and-playwright-versions.ps1 @@ -79,9 +79,12 @@ exit 1 } # Check if there are changes -if (-not (git diff --cached --quiet)) { +git diff --quiet +if ($LASTEXITCODE -eq 0) { Write-Host "No changes to commit." - exit 0 + # exit 0 +}else { + Write-Host "Updating the version of packages"; } # Create a new branch @@ -93,9 +96,9 @@ git add eng/Versions.props src/Components/benchmarkapps/Wasm.Performance/dockerf # Commit the changes $commitMessage = @" [Infrastructure] Update Selenium and Playwright dependencies $(Get-Date -Format "yyyy-MM-dd") -* Updated Playwright version to $($versions["Microsoft.Playwright"]) -* Updated Selenium version to $($versions["Selenium.Support"]) -* Updated Selenium version to $($versions["Selenium.WebDriver"]) +* Updated Microsoft.Playwright version to $($versions["Microsoft.Playwright"]) +* Updated Selenium.Support version to $($versions["Selenium.Support"]) +* Updated Selenium.WebDriver version to $($versions["Selenium.WebDriver"]) "@ git commit -m $commitMessage