This commit is contained in:
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
title: ${{ env.REPO }} Coverage
|
||||
|
||||
- id: version
|
||||
run: echo "version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> "GITHUB_OUTPUT"
|
||||
run: echo '::set-output VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)'
|
||||
|
||||
- name: Build Container
|
||||
if: github.ref_name == 'main'
|
||||
@@ -50,5 +50,8 @@ jobs:
|
||||
- name: create tag
|
||||
if: github.ref_name == 'main'
|
||||
run: |
|
||||
echo ${{ steps.version.outputs.VERSION }}
|
||||
git commit -m "[no ci] release ${{ steps.version.outputs.version }}"
|
||||
git tag ${{ steps.version.outputs.version }} -m "release ${{ steps.version.outputs.version }}"
|
||||
git push origin main
|
||||
git push origin ${{ steps.version.outputs.version }}
|
||||
|
||||
Reference in New Issue
Block a user