Skip to content

Commit

Permalink
fix(ci): set env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Dec 1, 2022
1 parent 6012cc9 commit 6a8cbc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
- name: Get App Version
id: get_version
run: |
echo "::set-env name=APP_VERSION::$(sed -e 's/"//g' <<< cat build.gradle | grep 'version = ' | cut -d'=' -f2 | awk '{$1=$1};1')"
echo "APP_VERSION=$(sed -n '1p' gradle.properties | cut -d'=' -f2)" >> $GITHUB_ENV
echo "LIFERAY_VERSION=$(sed -n '2p' gradle.properties | cut -d'=' -f2 | cut -d'.' -f1,2)" >> $GITHUB_ENV
- name: Set up JDK
id: setup_jdk
uses: actions/setup-java@v1
Expand All @@ -60,7 +61,7 @@ jobs:
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ./build/libs/com.github.lgdd.liferay.health-${{ env.APP_VERSION }}.jar
asset_name: com.github.lgdd.liferay.health-${{ env.APP_VERSION }}-jdk${{ matrix.java }}.jar
asset_name: com.github.lgdd.liferay.health-${{ env.APP_VERSION }}+liferay-{{env.LIFERAY_VERSION}}--jdk${{ matrix.java }}.jar
asset_content_type: application/octet-stream
- name: Rollback Release
if: failure() && needs.create_release.outputs.id != ''
Expand Down

0 comments on commit 6a8cbc4

Please sign in to comment.