Update Version #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |