Skip to content

Commit

Permalink
Allow passing arguments to maven release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Jun 24, 2021
1 parent 590f919 commit e168033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ inputs:
mavenReleaseArguments: # id of input
description: 'Arguments for Maven release'
required: false
releasePluginArguments:
description: 'Arguments for Maven Release Plugin'
required: false
mavenReleaseExecutePerform:
description: 'Execute maven release:perform'
required: false
Expand Down Expand Up @@ -133,6 +136,7 @@ runs:
MAVEN_RELEASE_EXECUTE_POST_SCRIPTS=${{ inputs.mavenReleaseExecutePostScripts }}
MAVEN_RELEASE_EXECUTE_PRE_SCRIPTS=${{ inputs.mavenReleaseExecutePreScripts }}
MAVEN_RELEASE_ARGUMENTS=${{ inputs.mavenReleaseArguments }}
RELEASE_ARGUMENTS=${{ inputs.releasePluginArguments }}
GIT_USER_NAME=${{ inputs.gitUserName }}
GIT_USER_EMAIL=${{ inputs.gitUserEmail }}
MAVEN_RELEASE_TAG=${{ inputs.mavenReleaseTag }}
Expand Down
2 changes: 1 addition & 1 deletion common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
export MAVEN_CONFIG="-s ${GITHUB_ACTION_PATH}/settings.xml"
fi

RELEASE_ARGUMENTS=""
RELEASE_ARGUMENTS="${RELEASE_ARGUMENTS:-}"

if [[ ! -z "${MAVEN_RELEASE_TAG}" ]];
then
Expand Down

0 comments on commit e168033

Please sign in to comment.