Skip to content

Commit

Permalink
Store CLEAN_BRANCH_NAME into Github Env
Browse files Browse the repository at this point in the history
  • Loading branch information
igbanam committed Sep 19, 2024
1 parent d82e1cb commit b3e6e3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ jobs:
BRANCH_NAME=${{ github.ref_name }}
CLEAN_BRANCH_NAME=$(echo $BRANCH_NAME | sed 's/[\/_]/-/g')
echo "Cleaned branch name: $CLEAN_BRANCH_NAME"
echo CLEAN_BRANCH_NAME=$CLEAN_BRANCH_NAME >> $GITHUB_ENV
- name: Sets up version
working-directory: rtsl_util
run: mvn versions:set -DnewVersion="$CLEAN_BRANCH_NAME".${{github.run_number}}
run: mvn versions:set -DnewVersion=${{ env.CLEAN_BRANCH_NAME }}.${{github.run_number}}
- name: Builds Artifacts and Images
working-directory: rtsl_util
run: mvn clean install
Expand Down

0 comments on commit b3e6e3e

Please sign in to comment.