|
|
@@ -136,12 +136,27 @@ jobs:
|
|
|
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."
|
|
|
+ cd Exit
|
|
|
fi
|
|
|
|
|
|
- - name: Rename the Recovery
|
|
|
+ - name: Rename the Recovery
|
|
|
run: |
|
|
|
- cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
|
|
|
- mv OrangeFox*.img recovery.img
|
|
|
+ cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
|
|
|
+ if [ "${{ github.event.inputs.BUILD_TARGET }}" = "boot" ]; then
|
|
|
+ mv OrangeFox*.img boot.img
|
|
|
+ echo "RECOVERY_TYPE=boot" >> $GITHUB_ENV
|
|
|
+ echo "boot.img file found!"
|
|
|
+ elif [ "${{ github.event.inputs.BUILD_TARGET }}" = "recovery" ]; then
|
|
|
+ mv OrangeFox*.img recovery.img
|
|
|
+ echo "RECOVERY_TYPE=recovery" >> $GITHUB_ENV
|
|
|
+ echo "recovery.img file found!"
|
|
|
+ elif [ "${{ github.event.inputs.BUILD_TARGET }}" = "vendorboot" ]; then
|
|
|
+ mv OrangeFox*.img vendor_boot.img
|
|
|
+ echo "RECOVERY_TYPE=vendor_boot" >> $GITHUB_ENV
|
|
|
+ echo "vendor_boot.img file found!"
|
|
|
+ else
|
|
|
+ echo "No recovery file found!"
|
|
|
+ fi
|
|
|
continue-on-error: true
|
|
|
|
|
|
- name: Include Recovery Installer
|
|
|
@@ -149,7 +164,7 @@ jobs:
|
|
|
if [ ${{ github.event.inputs.RECOVERY_INSTALLER }} = true ]; then
|
|
|
cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
|
|
|
wget https://github.com/kinguser981/recovery-installer/releases/download/zip/recovery-installer.zip
|
|
|
- zip -ur recovery-installer.zip recovery.img
|
|
|
+ zip -ur recovery-installer.zip ${{ env.RECOVERY_TYPE }}.img
|
|
|
fi
|
|
|
continue-on-error: true
|
|
|
|
|
|
@@ -157,7 +172,7 @@ jobs:
|
|
|
run: |
|
|
|
if [ ${{ github.event.inputs.RECOVERY_TAR }} = true ]; then
|
|
|
cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
|
|
|
- tar -cvf recovery.tar recovery.img
|
|
|
+ tar -cvf ${{ env.RECOVERY_TYPE }}.tar ${{ env.RECOVERY_TYPE }}.img
|
|
|
fi
|
|
|
continue-on-error: true
|
|
|
|
|
|
@@ -166,8 +181,8 @@ jobs:
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
with:
|
|
|
files: |
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.tar
|
|
|
+ OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ env.RECOVERY_TYPE }}.img
|
|
|
+ OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ env.RECOVERY_TYPE }}.tar
|
|
|
OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery-installer.zip
|
|
|
name: Unofficial OrangeFox for ${{ github.event.inputs.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
|
|
tag_name: ${{ github.run_id }}
|