Skip to content

Commit

Permalink
using new output format between action steps in maven-release
Browse files Browse the repository at this point in the history
  • Loading branch information
cfkoehler committed Oct 17, 2024
1 parent 96fe11c commit e18b877
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ 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_ENV"
outputs:
RELEASE_VERSION: ${{ env.RELEASE_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"

release:
needs: get_version
Expand All @@ -75,7 +73,7 @@ jobs:
packages: write
steps:
- name: Add RELEASE_VERSION to environment variable
run: echo "RELEASE_VERSION=${{ needs.get_version.outputs.RELEASE_VERSION }}" >> "$GITHUB_ENV"
run: echo "RELEASE_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }}" >> "$GITHUB_ENV"

- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -194,7 +192,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Add RELEASE_VERSION to environment variable
run: echo "RELEASE_VERSION=${{ needs.get_version.outputs.RELEASE_VERSION }}" >> "$GITHUB_ENV"
run: echo "RELEASE_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }}" >> "$GITHUB_ENV"

- name: Publish to slack channel via bot token
id: slack
Expand Down Expand Up @@ -224,7 +222,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Add RELEASE_VERSION to environment variable
run: echo "RELEASE_VERSION=${{ needs.get_version.outputs.RELEASE_VERSION }}" >> "$GITHUB_ENV"
run: echo "RELEASE_VERSION=${{ steps.get_version.outputs.RELEASE_VERSION }}" >> "$GITHUB_ENV"

- name: Publish to slack channel via bot token
id: slack
Expand Down

0 comments on commit e18b877

Please sign in to comment.