Skip to content

Commit

Permalink
break into multiple steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cfkoehler committed Oct 24, 2024
1 parent a158a7f commit bc6df48
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ jobs:
uses: actions/checkout@v4

- name: Get the version
run: echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | grep -v '\[.*' | awk -F- '{print ""$1"${{ github.event.inputs.release_suffix }}"}')" >> "$GITHUB_OUTPUT"
run: echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | grep -v '\[.*' | awk -F- '{print ""$1"${{ github.event.inputs.release_suffix }}"}')" >> "$GITHUB_ENV"

- name: Save the version to the output
run: |
echo "Saving RELEASE_VERSION=${RELEASE_VERSION}"
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> GITHUB_OUTPUT
release:
needs: get_version
Expand Down

0 comments on commit bc6df48

Please sign in to comment.