Skip to content

Commit

Permalink
chore: action
Browse files Browse the repository at this point in the history
  • Loading branch information
jing332 committed Jan 30, 2024
1 parent 6107399 commit e22779e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ jobs:
chmod +x gradlew
./gradlew assemble${{ env.product }}release --build-cache --parallel --daemon --warning-mode all
- name: Init environment variable
- name: Set Version Name
run: |
verName="$(grep -m 1 'versionName' ${{ env.outputs_dir }}/apk/${{ env.product }}/release/output-metadata.json | cut -d\" -f4)"
echo "ver_name=${{ verName }}" >> $GITHUB_ENV
echo "apk_path=${{ env.outputs_dir }}/apk/${{ env.product }}/release/*${{ verName }}.apk" >> $GITHUB_ENV
echo "ver_name=$(grep -m 1 'versionName' ${{ env.outputs_dir }}/apk/${{ env.product }}/release/output-metadata.json | cut -d\" -f4)" >> $GITHUB_ENV
- name: Set APK Path
run: |
echo "apk_path=${{ env.outputs_dir }}/apk/${{ env.product }}/release/${{ env.product }}-release.apk" >> $GITHUB_ENV
# - name: Upload Mappings to Artifact
# uses: actions/upload-artifact@v3
Expand Down

0 comments on commit e22779e

Please sign in to comment.