Skip to content

Bump Version

Bump Version #22

Workflow file for this run

name: Bump Version
on:
workflow_dispatch:
inputs:
newVersion:
description: "Version name"
required: true
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
bump_version:
name: Bump version
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Bump version script
run: |
perl -i -pe 's/^(templateScriptVersion=(.*))$/"templateScriptVersion=${{ github.event.inputs.newVersion }}"/e' version.properties
- name: Bump version Compose
run: |
perl -i -pe 's/ANDROID_VERSION_NAME =(.*)$/ANDROID_VERSION_NAME = "${{ github.event.inputs.newVersion }}"/g' sample-compose/buildSrc/src/main/java/Versions.kt
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
assignees: ${{ secrets.GITHUB_USER }}
token: ${{ secrets.WIKI_ACTION_TOKEN }}
commit-message: '[Chore] Bump version to ${{ github.event.inputs.newVersion }}'
committer: Nimble Bot <[email protected]>
branch: chore/bump-version-to-${{ github.event.inputs.newVersion }}
delete-branch: true
title: '[Chore] Bump version to ${{ github.event.inputs.newVersion }}'
labels: |
type : chore
body: |
## What happened 👀
Bump version to ${{ github.event.inputs.newVersion }}
## Insight 📝
Automatically created by the `Bump Version` workflow.
## Proof Of Work 📹
On the `Files changed` tab