Skip to content

Commit

Permalink
minor fixes CICD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Pennati committed Dec 13, 2023
1 parent 67da34d commit bd2e22f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ jobs:
cache: maven
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Echo branch
run: echo "${{ github.event.base_ref }}"
- name: Set env # Extract version and branch from tag and save them as environment variables
run: |
echo "TAG_VERSION=$( echo ${{github.ref_name}} | sed 's/[^0-9.]//g' )" >> $GITHUB_ENV
echo "BRANCH_NAME${{ github.event.base_ref }}" >> $GITHUB_ENV
echo "BRANCH_NAME=$( echo ${{ github.event.base_ref }} | sed 's|refs/heads/||' )" >> $GITHUB_ENV
- name: Update versions
run: mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${{ env.TAG_VERSION }}
- name: Push new version
Expand Down

0 comments on commit bd2e22f

Please sign in to comment.