-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
75 lines (70 loc) · 2.36 KB
/
Copy pathaction.yml
File metadata and controls
75 lines (70 loc) · 2.36 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Automated Maven Project Version Bump
description: Automated Maven Version Bump, only recommend to run in PRs.
inputs:
pom-file:
description: "Where to find the pom file"
default: "pom.xml"
required: false
bump-command:
description: "Command to update the version"
default: "mvn org.codehaus.mojo:versions-maven-plugin:set -DnewVersion=@NEW_VERSION@ -s settings.xml"
required: false
commit-message:
description: "Custom commit message for version bump commit"
default: "version bump to"
required: false
version-property-path:
description: "Version property to update"
default: '["project","version"]'
required: false
git-username:
description: "Git username for the commit"
default: "github-actions[bot]"
required: false
git-useremail:
description: "Git user email for the commit"
default: "github-actions[bot]@users.noreply.github.com"
required: false
post-command:
description: "shell command to run after version bump"
default: ""
required: false
token:
description: "Github token with permission to fetch PR status and commit the changes"
required: true
dry-run:
description: "If true, skip git push"
default: "false"
required: false
outputs:
bumped:
description: "True if version was bumped"
value: ${{ steps.bump.outputs.bumped }}
new-version:
description: "The new version"
value: ${{ steps.bump.outputs.new-version }}
bumpLevel:
description: "The computed SemVer bump level (major, minor, patch)"
value: ${{ steps.bump.outputs.bumpLevel }}
runs:
using: composite
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ inputs.token }}
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.18.0
- name: Bump up project version
id: bump
uses: sap/pull-request-semver-bumper/.github/actions/core@main
with:
build-type: "maven"
pom-file: ${{ inputs.pom-file }}
git-username: ${{ inputs.git-username }}
git-useremail: ${{ inputs.git-useremail }}
commit-message: ${{ inputs.commit-message }}
token: ${{ inputs.token }}
bump-command: ${{ inputs.bump-command }}
version-property-path: ${{ inputs.version-property-path }}
post-command: ${{ inputs.post-command }}
dry-run: ${{ inputs.dry-run }}