Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions config-maven/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,22 @@ runs:
# yamllint enable rule:line-length
restore-keys: maven-${{ runner.os }}-${{ steps.sanitize_workflow.outputs.workflow_name }}-

- name: Check for pom.xml
id: check_pom_xml
if: steps.config-maven-completed.outputs.skip != 'true'
shell: bash
working-directory: ${{ inputs.working-directory }}
run: |
if [[ -f "pom.xml" ]]; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "No pom.xml file. Skipping project version update."
echo "exists=false" >> "$GITHUB_OUTPUT"
fi

- name: Update project version and set current-version and project-version variables
id: set-version
if: steps.config-maven-completed.outputs.skip != 'true' && steps.check_pom_xml.outputs.exists == 'true'
shell: bash
working-directory: ${{ inputs.working-directory }}
env:
Expand Down
Loading