Skip to content

Commit

Permalink
Prepare maven wrapper at action start
Browse files Browse the repository at this point in the history
Make sure downloading and uncompressing maven
wrapper doesn't contaminate commands' outputs.
  • Loading branch information
Pawel Palucha authored and losipiuk committed Apr 27, 2023
1 parent e168033 commit e8160e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ runs:
run: git config --global user.name "${{ inputs.gitUserName }}" && git config --global user.email "${{ inputs.gitUserEmail }}"
shell: bash
working-directory: "${{ inputs.workingDirectory }}"
- name: "Prepare maven wrapper"
run: ${{ github.action_path }}/prepare_maven_wrapper.sh
shell: bash
working-directory: "${{ inputs.workingDirectory }}"
- name: "Export release version"
id: version
run: ${{ github.action_path }}/export_version.sh
Expand Down
8 changes: 8 additions & 0 deletions prepare_maven_wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -euo pipefail
[[ $TRACE_ENABLED == "true" ]] && set -x

# If we are using maven wrapper, make sure it's downloaded. Otherwise downloading/uncompressing
# may contaminate commands outputs.
${MAVEN_BIN} -f "${MAVEN_PROJECT_POM}" --version

0 comments on commit e8160e7

Please sign in to comment.