From 6046dd19aa7691af42c7aef0b4f0884b99fe300d Mon Sep 17 00:00:00 2001 From: alestoya Date: Tue, 25 Nov 2025 15:09:57 +0200 Subject: [PATCH 1/5] chore: add update_versions pwsh script --- scripts/update_versions.ps1 | 195 ++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 scripts/update_versions.ps1 diff --git a/scripts/update_versions.ps1 b/scripts/update_versions.ps1 new file mode 100644 index 00000000..dda3a2d8 --- /dev/null +++ b/scripts/update_versions.ps1 @@ -0,0 +1,195 @@ +param( + [string]$newKendoVersion = "2025.4.1111", + [string]$newThemesVersion = "12.0.1", + [string]$newDplVersion = "2025.3.807", + [string]$newIconsVersion = "4.7.0", + [string]$newCaptchaVersion = "2.0.4", + [string]$newLicensingVersion = "1.6.17" +) + +function Replace_Reference{ + param( + [string]$fileContent, + [string]$oldReference, + [string]$newReference + ) + + if($fileContent -match $oldReference) { + $fileContent = $fileContent -replace $oldReference, $newReference + } + + return $fileContent +} + +function UpdateDplPackagesInConfig { + param ( + [string] $packageContent, + [string[]] $dplPackages + ) + + foreach($dplPackage in $dplPackages) { + $packageContent = Replace_Reference -fileContent $packageContent -oldReference " Date: Tue, 25 Nov 2025 15:40:09 +0200 Subject: [PATCH 2/5] chore: add automatic telerik version update workflow --- .github/workflows/update-versions.yml | 73 +++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/update-versions.yml diff --git a/.github/workflows/update-versions.yml b/.github/workflows/update-versions.yml new file mode 100644 index 00000000..daea3a15 --- /dev/null +++ b/.github/workflows/update-versions.yml @@ -0,0 +1,73 @@ +name: "Update Kendo, Themes, DPL, Captcha, Icons and Licensing versions" + +on: + workflow_dispatch: + inputs: + new_kendo_version: + description: "The new Kendo version to apply" + type: string + required: true + + new_themes_version: + description: "The new themes version to apply" + type: string + required: true + + new_dpl_versions: + description: "The new dpl versions to apply" + type: string + required: true + + new_icons_version: + description: "The new icon versions to apply" + type: string + required: true + + new_captcha_version: + description: "The Web Captcha version to apply" + type: string + required: true + + new_licensing_version: + description: "The new licensing version to apply" + type: string + required: true +jobs: + update-versions: + runs-on: ubuntu-latest + + permissions: + contents: write + pull-requests: write + + env: + new_kendo_version: ${{ github.event.inputs.new_kendo_version }} + new_themes_version: ${{ github.event.inputs.new_themes_version }} + new_dpl_versions: ${{ github.event.inputs.new_themes_version }} + new_icons_version: ${{ github.event.inputs.new_icons_version }} + new_captcha_version: ${{ github.event.inputs.new_captcha_version }} + new_licensing_version: ${{ github.event.inputs.new_licensing_version }} + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Update dependencies + shell: pwsh + run: | + ./scripts/update_versions.ps1 -newKendoVersion "$env:new_kendo_version" -newThemesVersion "$env:new_themes_version" -newDplVersion "$env:new_dpl_versions" -newIconsVersion "$env:new_icons_version" -newCaptchaVersion "$env:new_captcha_version" -newLicensingVersion "$env:new_licensing_version" + + - name: Create PR + run: | + git checkout -b ${{ inputs.new_kendo_version }} + git config user.email "kendo-bot@progress.com" + git config user.name "kendo-bot" + git add . + git status + git commit -m "chore: update kendo, themes, dpl, captcha, icons and licensing versions" + git push --set-upstream origin ${{ inputs.new_kendo_version }} + gh pr create --base master --head ${{ inputs.new_kendo_version }} --title "Update dependencies" --body "Updated kendo, themes, dpl, captcha, icons and licensing versions" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 0049172fc9c7d34a790b4fbefd463db16bf7c5d9 Mon Sep 17 00:00:00 2001 From: alestoya Date: Wed, 26 Nov 2025 13:14:59 +0200 Subject: [PATCH 3/5] chore: update Web.config in update_version pwsh script --- scripts/update_versions.ps1 | 57 ++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/scripts/update_versions.ps1 b/scripts/update_versions.ps1 index dda3a2d8..5017bfe0 100644 --- a/scripts/update_versions.ps1 +++ b/scripts/update_versions.ps1 @@ -162,6 +162,56 @@ function Update_ProjectVersions { } } +function Update_IconsWebConfig { + param( + [string] $webConfigContent, + [string[]] $iconPackages + ) + + foreach($iconPackage in $iconPackages) { + $webConfigContent = Replace_Reference -fileContent $webConfigContent -oldReference " + + + + Date: Wed, 26 Nov 2025 14:43:57 +0200 Subject: [PATCH 4/5] chore: add trailing zeros in Web.config automation updates --- scripts/update_versions.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/update_versions.ps1 b/scripts/update_versions.ps1 index 5017bfe0..79728c07 100644 --- a/scripts/update_versions.ps1 +++ b/scripts/update_versions.ps1 @@ -170,10 +170,10 @@ function Update_IconsWebConfig { foreach($iconPackage in $iconPackages) { $webConfigContent = Replace_Reference -fileContent $webConfigContent -oldReference " - - - - Date: Wed, 26 Nov 2025 15:08:44 +0200 Subject: [PATCH 5/5] chore: remove non-existing file references in csproj --- .../Telerik.Examples.Mvc.csproj | 2286 ----------------- 1 file changed, 2286 deletions(-) diff --git a/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj b/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj index 1fa1eb27..8ed19223 100644 --- a/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj +++ b/Telerik.Examples.Mvc/Telerik.Examples.Mvc/Telerik.Examples.Mvc.csproj @@ -2778,36 +2778,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2954,1134 +2924,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -4110,1134 +2952,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -