Skip to content

Update Version

Update Version #2

Workflow file for this run

name: Update Version
on:
workflow_dispatch:
inputs:
version:
description: 'New version to set (e.g., 1.0.1)'
required: true
jobs:
update-version:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Update version in build.gradle.kts
run: |
sed -i 's/^version = .*/version = "${{ github.event.inputs.version }}"/' build.gradle.kts
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add build.gradle.kts
git commit -m "chore: bump version to ${{ github.event.inputs.version }}"
git push