forked from nnichols/maven-version-bump-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
53 lines (47 loc) · 1.55 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
52
# ref: https://help.github.com/en/actions/building-actions/metadata-syntax-for-github-actions
name: Maven Version Bump Action
description: A simple GitHub Actions to bump the version of Maven projects
author: Nick Nichols
branding:
color: purple
icon: git-commit
inputs:
github-token:
description: 'A GitHub auth token to be able to create the pull request'
required: true
pom-path:
description: 'The relative location of your pom.xml file'
required: true
default: '.'
git-email:
description: 'The email address used to create the version bump commit with.'
required: true
default: 41898282+github-actions[bot]@users.noreply.github.com
git-username:
description: 'The name to use for the version bump commit. e.g. github.actor'
required: true
default: github-actions[bot]
outputs:
version:
description: 'The current version (whether updated or not)'
value: ${{ steps.get-outputs.outputs.version }}
runs:
using: "composite"
steps:
- name: Bump Version
env:
TOKEN: ${{ inputs.github-token }}
EMAIL: ${{ inputs.git-email }}
NAME: ${{ inputs.git-username }}
POMPATH: ${{ inputs.pom-path }}
run: ${{github.action_path}}/version-bump.sh
shell: bash
- name: Set outputs
id: get-outputs
shell: bash
env:
POMPATH: ${{ inputs.pom-path }}
run: echo "::set-output name=version::$(${{github.action_path}}/get-version.sh)"
- name: Result
shell: bash
run: "echo 'Version is now ${{ steps.get-outputs.outputs.version }}'"