File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 35
35
- name : Get App Version
36
36
id : get_version
37
37
run : |
38
- echo "::set-env name=APP_VERSION::$(sed -e 's/"//g' <<< cat build.gradle | grep 'version = ' | cut -d'=' -f2 | awk '{$1=$1};1')"
38
+ echo "APP_VERSION=$(sed -n '1p' gradle.properties | cut -d'=' -f2)" >> $GITHUB_ENV
39
+ echo "LIFERAY_VERSION=$(sed -n '2p' gradle.properties | cut -d'=' -f2 | cut -d'.' -f1,2)" >> $GITHUB_ENV
39
40
- name : Set up JDK
40
41
id : setup_jdk
41
42
uses : actions/setup-java@v1
60
61
with :
61
62
upload_url : ${{ needs.create_release.outputs.upload_url }}
62
63
asset_path : ./build/libs/com.github.lgdd.liferay.health-${{ env.APP_VERSION }}.jar
63
- asset_name : com.github.lgdd.liferay.health-${{ env.APP_VERSION }}-jdk${{ matrix.java }}.jar
64
+ asset_name : com.github.lgdd.liferay.health-${{ env.APP_VERSION }}+liferay-{{env.LIFERAY_VERSION}}- -jdk${{ matrix.java }}.jar
64
65
asset_content_type : application/octet-stream
65
66
- name : Rollback Release
66
67
if : failure() && needs.create_release.outputs.id != ''
You can’t perform that action at this time.
0 commit comments