From a2cb286513314d3a80e82846ed3dd4668f1f1ae8 Mon Sep 17 00:00:00 2001 From: Carlo Dandan Date: Tue, 9 Jan 2024 05:45:28 +0000 Subject: [PATCH] yml: Minor cleanup/changes. -- 2 * Removed img/zip checker. * Moved MD5SUM checker at Set Release Properties. Signed-off-by: Carlo Dandan --- .github/workflows/OrangeFox-Compile.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/OrangeFox-Compile.yml b/.github/workflows/OrangeFox-Compile.yml index 2a2b10f..8ec0c72 100644 --- a/.github/workflows/OrangeFox-Compile.yml +++ b/.github/workflows/OrangeFox-Compile.yml @@ -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: |