Skip to content

Commit b4c5d55

Browse files
committed
chore: add automatic telerik version update workflow
1 parent 1992d8b commit b4c5d55

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: "Update Kendo, Themes, DPL, Captcha, Icons and Licensing versions"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
new_kendo_version:
7+
description: "The new Kendo version to apply"
8+
type: string
9+
required: true
10+
11+
new_themes_version:
12+
description: "The new themes version to apply"
13+
type: string
14+
required: true
15+
16+
new_dpl_versions:
17+
description: "The new dpl versions to apply"
18+
type: string
19+
required: true
20+
21+
new_icons_version:
22+
description: "The new icon versions to apply"
23+
type: string
24+
required: true
25+
26+
new_captcha_version:
27+
description: "The Web Captcha version to apply"
28+
type: string
29+
required: true
30+
31+
new_licensing_version:
32+
description: "The new licensing version to apply"
33+
type: string
34+
required: true
35+
jobs:
36+
update-versions:
37+
runs-on: ubuntu-latest
38+
39+
permissions:
40+
contents: write
41+
pull-requests: write
42+
43+
env:
44+
new_kendo_version: ${{ github.event.inputs.new_kendo_version }}
45+
new_themes_version: ${{ github.event.inputs.new_themes_version }}
46+
new_dpl_versions: ${{ github.event.inputs.new_themes_version }}
47+
new_icons_version: ${{ github.event.inputs.new_icons_version }}
48+
new_captcha_version: ${{ github.event.inputs.new_captcha_version }}
49+
new_licensing_version: ${{ github.event.inputs.new_licensing_version }}
50+
51+
steps:
52+
- name: Checkout repo
53+
uses: actions/checkout@v4
54+
with:
55+
token: ${{ secrets.GITHUB_TOKEN }}
56+
57+
- name: Update dependencies
58+
shell: pwsh
59+
run: |
60+
./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"
61+
62+
- name: Create PR
63+
run: |
64+
git checkout -b ${{ inputs.new_kendo_version }}
65+
git config user.email "[email protected]"
66+
git config user.name "kendo-bot"
67+
git add .
68+
git status
69+
git commit -m "chore: update kendo, themes, dpl, captcha, icons and licensing versions"
70+
git push --set-upstream origin ${{ inputs.new_kendo_version }}
71+
gh pr create --base master --head ${{ inputs.new_kendo_version }} --title "Update dependencies" --body "Updated kendo, themes, dpl, captcha, icons and licensing versions"
72+
env:
73+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)