From e18b877da0eef8ac02ce1a4ae20f33737e8a8f46 Mon Sep 17 00:00:00 2001 From: Connor Date: Thu, 17 Oct 2024 05:55:34 -0400 Subject: [PATCH] using new output format between action steps in maven-release --- .github/workflows/maven-release.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 41c5ba10ff..94fc1ad85f 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -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 @@ -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 @@ -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 @@ -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