yml: Minor cleanup/changes. -- 2
* Removed img/zip checker. * Moved MD5SUM checker at Set Release Properties. Signed-off-by: Carlo Dandan <carlodandan.personal@proton.me>
This commit is contained in:
@@ -98,28 +98,14 @@ jobs:
|
||||
set -e
|
||||
lunch twrp_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image
|
||||
|
||||
- name: Set Build Date # For Build Date Info, currently using Asia/Manila
|
||||
- name: Set Release Properties
|
||||
run: |
|
||||
echo "BUILD_DATE=$(TZ=Asia/Manila date +%Y%m%d)" >> $GITHUB_ENV
|
||||
|
||||
- name: Check if Recovery Exist
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
if [ -f out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img ]; then
|
||||
echo "CHECK_IMG_IS_OK=true" >> $GITHUB_ENV
|
||||
echo "MD5_IMG=$(md5sum out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Recovery out directory is empty."
|
||||
fi
|
||||
if [ -f out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.zip ]; then
|
||||
echo "CHECK_ZIP_IS_OK=true" >> $GITHUB_ENV
|
||||
echo "MD5_ZIP=$(md5sum out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.zip | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Recovery out directory is empty."
|
||||
fi
|
||||
echo "MD5_IMG=$(md5sum out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||
echo "MD5_ZIP=$(md5sum out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.zip | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload to Release
|
||||
if: env.CHECK_IMG_IS_OK == 'true' && env.CHECK_ZIP_IS_OK == 'true'
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
|
||||
Reference in New Issue
Block a user