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 ba8ca9a commit af2cb33
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/3.approve-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
java-version: 18
- name: Define docker variables
run: |
export version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
if [[ "$version" == *"SNAPSHOT"* ]]; then
echo "Dealing with a snapshot version. Current version: ${{ version }}"
echo "New version: ${ version //-SNAPSHOT//g }"
export VERSION=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
echo "version=$VERSION" >> $GITHUB_ENV
if [[ "$env.version" == *"SNAPSHOT"* ]]; then
echo "Dealing with a snapshot version. Current version: ${{ env.version }}"
echo "New version: ${ env.version //-SNAPSHOT//g }"
else
echo "Already released. Current version: ${ version }"
echo "Already released. Current version: ${ env.version }"
fi

0 comments on commit af2cb33

Please sign in to comment.