generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (43 loc) · 1.4 KB
/
action.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
name: Bump version for Mule app
description: Bump version for Mule app
inputs:
new_version:
description: New version
required: true
committer:
description: Committer for the pull request
required: true
assignees:
description: Assignees for the pull request
github_token:
description: GitHub token to create the pull request
required: true
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set the new version in pom.xml
shell: bash
run: |
perl -0777 -pe 's/<version>.*<\/version>/<version>${{ inputs.new_version }}<\/version>/' -i.bak pom.xml
cat pom.xml
- name: Create the pull request
uses: peter-evans/create-pull-request@v6
with:
assignees: ${{ inputs.assignees }}
token: ${{ inputs.github_token }}
commit-message: "[skip ci] Bump version to ${{ inputs.new_version }}"
committer: ${{ inputs.committer }}
branch: chore/bump-version-to-${{ inputs.new_version }}
delete-branch: true
title: "[Chore] Bump version to ${{ inputs.new_version }}"
labels: |
type : chore
body: |
## What happened 👀
Bump version to ${{ inputs.new_version }}
## Insight 📝
Automatically created by the Bump Version workflow.
## Proof Of Work 📹
On the Files changed tab