diff --git a/.github/workflows/Recovery Build.yml b/.github/workflows/Recovery Build.yml index 284879c2d..c9653e340 100644 --- a/.github/workflows/Recovery Build.yml +++ b/.github/workflows/Recovery Build.yml @@ -4,35 +4,35 @@ on: workflow_dispatch: inputs: MANIFEST_URL: - description: 'MANIFEST_URL (if using SSH keys, use git@github.com:repo URL format)' + description: 'Manifest URL (if using SSH keys, use git@github.com:repo URL format)' required: true default: 'https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git' MANIFEST_BRANCH: - description: 'MANIFEST_BRANCH' + description: 'Manifest Branch' required: true default: 'twrp-12.1' DEVICE_TREE_URL: - description: 'DEVICE_TREE_URL' + description: 'Device Tree URL' required: true default: 'https://github.com/TeamWin/android_device_asus_I003D' DEVICE_TREE_BRANCH: - description: 'DEVICE_TREE_BRANCH' + description: 'Device Tree Branch' required: true default: 'android-12.1' DEVICE_PATH: - description: 'DEVICE_PATH' + description: 'Path the device tree should be synced to, relative to source root' required: true default: 'device/asus/I003D' DEVICE_NAME: - description: 'DEVICE_NAME' + description: 'Device Name from tree (should match name on vendor_device.mk)' required: true default: 'I003D' REPOPICK_PATCHES: - description: 'REPOPICK_PATCHES (Gerrit commit numbers separated by a space to be included in the build)' + description: 'Gerrit commit numbers separated by a space to be included in the build' type: string required: false BUILD_TARGET: - description: 'BUILD_TARGET' + description: 'Partition containing recovery ramdisk (boot, recovery, vendor_boot)' required: true default: 'recovery' @@ -51,7 +51,7 @@ jobs: echo "Device Tree Branch: ${{ github.event.inputs.DEVICE_TREE_BRANCH }}" echo "Device Path: ${{ github.event.inputs.DEVICE_PATH }}" echo "Device Name: ${{ github.event.inputs.DEVICE_NAME }}" - echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}.img" + echo -e "Build Target: $(tr -d _ <<< ${{ github.event.inputs.BUILD_TARGET }}).img" echo "::endgroup::" # You might want to Checkout your repo first, but not mandatory @@ -192,7 +192,7 @@ jobs: run: | source build/envsetup.sh export ALLOW_MISSING_DEPENDENCIES=true - lunch ${{ steps.buildtree.outputs.value }}_${{ github.event.inputs.DEVICE_NAME }}-eng && make ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all) + lunch ${{ steps.buildtree.outputs.value }}_${{ github.event.inputs.DEVICE_NAME }}-eng && make $(tr -d _ <<< ${{ github.event.inputs.BUILD_TARGET }})image -j$(nproc --all) working-directory: ${{ steps.pwd.outputs.workspace-folder }} - name: Upload to Release diff --git a/README.md b/README.md index 0202f2f59..6b9af869b 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Support PBRP, SHRP, TWRP compilation and production | `DEVICE_PATH` | Device location | device/asus/I003D | | `DEVICE_NAME` | Model name | I003D | | `REPOPICK_PATCHES` | Gerrit patches to include in build (space separated) | 1245 1437 | -| `BUILD_TARGET` | Build Target Partition (boot/recovery/vendorboot) | recovery | +| `BUILD_TARGET` | Build Target Partition (boot/recovery/vendor_boot) | recovery | -----