Browse Source

Update OrangeFox-Recovery-Builder.yml

Samuel Kendall 1 năm trước cách đây
mục cha
commit
f52851691b

+ 6 - 3
.github/workflows/OrangeFox-Recovery-Builder.yml

@@ -145,8 +145,9 @@ jobs:
     - name: Include Recovery Installer
     - name: Include Recovery Installer
       run: |
       run: |
         if [ ${{ github.event.inputs.RECOVERY_INSTALLER }} = true ]; then
         if [ ${{ github.event.inputs.RECOVERY_INSTALLER }} = true ]; then
-          cd workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
+          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
           wget https://github.com/kinguser981/recovery-installer/releases/download/zip/recovery-installer.zip
+          mv OrangeFox*.img recovery.img
           zip -ur recovery-installer.zip recovery.img
           zip -ur recovery-installer.zip recovery.img
         fi
         fi
       continue-on-error: true
       continue-on-error: true
@@ -154,7 +155,8 @@ jobs:
     - name: Recovery to tar for Samsung devices
     - name: Recovery to tar for Samsung devices
       run: |
       run: |
         if [ ${{ github.event.inputs.RECOVERY_TAR }} = true ]; then
         if [ ${{ github.event.inputs.RECOVERY_TAR }} = true ]; then
-          cd workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
+          cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
+          mv OrangeFox*.img recovery.img
           tar -cvf recovery.tar recovery.img
           tar -cvf recovery.tar recovery.img
         fi
         fi
       continue-on-error: true
       continue-on-error: true
@@ -165,7 +167,8 @@ jobs:
       with:
       with:
         files: |
         files: |
           OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img
           OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img
-          OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.zip
+          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 }}/recovery-installer.zip
         name: Unofficial OrangeFox for ${{ github.event.inputs.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
         name: Unofficial OrangeFox for ${{ github.event.inputs.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
         tag_name: ${{ github.run_id }}
         tag_name: ${{ github.run_id }}
         body: |
         body: |