-
Notifications
You must be signed in to change notification settings - Fork 23
54 lines (43 loc) · 1.62 KB
/
bump_version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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/androidVersionName =(.*)$/androidVersionName = "${{ github.event.inputs.newVersion }}"/g' sample-compose/gradle/libs.versions.toml
- 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