Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 40c2d49

Browse files
author
Nier
committed
尝试推送master自动发布release
1 parent 16efa7c commit 40c2d49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/maven-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
settings-path: ${{ github.workspace }} # location for the settings.xml file
2828
- name: Set environment variable
2929
run: |
30-
echo "name=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> "$GITHUB_ENV"
30+
echo "RELEASE_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> "$GITHUB_ENV"
3131
3232
- name: Use environment variable
3333
run: |
34-
printf '%s\n' "$name"
35-
echo ${{env.name}}
34+
printf '%s\n' "$RELEASE_VERSION"
35+
echo ${{env.RELEASE_VERSION}}
3636
# - name: Build with Maven
3737
# run: mvn -B package --file pom.xml -DskipTests
3838
#

0 commit comments

Comments
 (0)