From 2fc13b4d039d73c326f512c6d69f45fb0bb9fbe6 Mon Sep 17 00:00:00 2001 From: Vladimir Pikovski Date: Sat, 11 Nov 2023 23:45:42 +0200 Subject: [PATCH] wip --- .github/workflows/ci_pipeline.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_pipeline.yml b/.github/workflows/ci_pipeline.yml index 86d50428c..917aa6329 100644 --- a/.github/workflows/ci_pipeline.yml +++ b/.github/workflows/ci_pipeline.yml @@ -17,9 +17,10 @@ jobs: id: update_version run: | version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) - next_version=$(echo $version | awk -F'[.-]' '{print $1"."$2"."$3+1}') >> $GITHUB_ENV - mvn versions:set -DnewVersion=$next_version - echo "${{ env.next_version }}" > version.txt + nextVersion=$(echo $version | awk -F'[.-]' '{print $1"."$2"."$3+1}') >> $GITHUB_ENV + mvn versions:set -DnewVersion=$nextVersion + echo "nextVersion=$nextVersion" >> "$GITHUB_ENV" + echo $nextVersion >> version.txt # - name: Compile Code and Package Artifact # working-directory: ./myapp