Skip to content

Commit

Permalink
ci: automate approval process
Browse files Browse the repository at this point in the history
  • Loading branch information
Yalz committed Sep 18, 2023
1 parent 30921b1 commit c0c6d50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/3.approve-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
export VERSION=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
if [[ "${{ env.version }}" == *"SNAPSHOT"* ]]; then
echo "Dealing with a snapshot version. Current version: ${{ env.version }}"
echo "New version: ${{ env.version //-SNAPSHOT/ }}"
str_to_replace="-SNAPSHOT"
replace_str=""
echo "New version: ${{ env.version //$str_to_replace/$replace_str }}"
else
echo "Already released. Current version: ${{ env.version }}"
fi

0 comments on commit c0c6d50

Please sign in to comment.