Skip to content

Commit 6a8cbc4

Browse files
author
lgdd
committed
fix(ci): set env vars
1 parent 6012cc9 commit 6a8cbc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
- name: Get App Version
3636
id: get_version
3737
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
3940
- name: Set up JDK
4041
id: setup_jdk
4142
uses: actions/setup-java@v1
@@ -60,7 +61,7 @@ jobs:
6061
with:
6162
upload_url: ${{ needs.create_release.outputs.upload_url }}
6263
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
6465
asset_content_type: application/octet-stream
6566
- name: Rollback Release
6667
if: failure() && needs.create_release.outputs.id != ''

0 commit comments

Comments
 (0)