Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/update-versions.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
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 }}
Loading