Skip to content

chore: update workflow #2

chore: update workflow

chore: update workflow #2

name: "Update Kendo, Themes and DPL versions"

Check failure on line 1 in .github/workflows/update-versions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-versions.yml

Invalid workflow file

you may only define up to 10 `inputs` for a `workflow_dispatch` event
on:
workflow_dispatch:
inputs:
old_kendo_version:
description: "The old Kendo version to replace"
type: string
required: true
new_kendo_version:
description: "The new Kendo version to apply"
type: string
required: true
old_themes_version:
description: "The old themes version to apply"
type: string
required: true
new_themes_version:
description: "The new themes version to apply"
type: string
required: true
old_core_export_version:
description: "The old Core Export version to apply"
type: string
required: true
new_core_export_version:
description: "The new Core Export version to apply"
type: string
required: true
old_web_captcha_version:
description: "The old Web Captcha version to apply"
type: string
required: true
new_web_captcha_version:
description: "The new Web Captcha version to apply"
type: string
required: true
old_web_spreadsheet_version:
description: "The old Web Spreadsheet version to apply"
type: string
required: true
new_web_spreadsheet_version:
description: "The new Web Spreadsheet version to apply"
type: string
required: true
old_web_pdf_version:
description: "The old Web PDF version to apply"
type: string
required: true
new_web_pdf_version:
description: "The new Web PDF version to apply"
type: string
required: true
push:
jobs:
update-versions:
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
old_kendo_version: "1"
new_kendo_version: "1"
old_themes_version: "1"
new_themes_version: "1"
old_core_export_version: "1"
new_core_export_version: "1"
old_web_captcha_version: "1"
new_web_captcha_version: "1"
old_web_spreadsheet_version: "1"
new_web_spreadsheet_version: "1"
old_web_pdf_version: "1"
new_web_pdf_version: "1"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Update dependencies
shell: pwsh
run: |
./update-versions.ps1 -oldKendoVersion "$env:old_kendo_version" -newKendoVersion "$env:new_kendo_version" -oldThemesVersion "$env:old_themes_version" -newThemesVersion "$env:new_themes_version" -oldCoreExportVersion "$env:old_core_export_version" -newCoreExportVersion "$env:new_core_export_version" -oldWebCaptchaVersion "$env:old_web_captcha_version" -newWebCaptchaVersion "$env:new_web_captcha_version" -oldWebSpreadsheetVersion "$env:old_web_spreadsheet_version" -newWebSpreadsheetVersion "$env:new_web_spreadsheet_version" -oldWebPDFVersion "$env:old_web_pdf_version" -newWebPDFVersion "$env:new_web_pdf_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"
cd src
git add .
git status
git commit -m "chore: update kendo, themes, export, pdf, and captcha 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, export, pdf, and captcha versions"