Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CaptainThrowback/Action-Recovery-Builder
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7959450870
Choose a base ref
...
head repository: CaptainThrowback/Action-Recovery-Builder
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: TWRP
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Feb 23, 2024

  1. Update README

    CaptainThrowback committed Feb 23, 2024
    Copy the full SHA
    65795e4 View commit details

Commits on Mar 5, 2024

  1. Create remote from device tree URL

    Allows non-Github links to be used properly
    CaptainThrowback committed Mar 5, 2024
    Copy the full SHA
    469b84a View commit details
  2. Update README

    CaptainThrowback committed Mar 5, 2024
    Copy the full SHA
    d8e2aac View commit details
Showing with 19 additions and 3 deletions.
  1. +9 −3 .github/workflows/Recovery Build.yml
  2. +8 −0 README.md
  3. +2 −0 templates/roomservice.xml
12 changes: 9 additions & 3 deletions .github/workflows/Recovery Build.yml
Original file line number Diff line number Diff line change
@@ -143,14 +143,20 @@ jobs:
repo sync -j$(nproc --all)
working-directory: workspace

- name: Clone device tree (Github)
- name: Clone device tree (Github/Other)
if: |
!contains( inputs.DEVICE_TREE_URL,'/TeamWin/' )
&& steps.buildtree.outputs.value == 'aosp'
run: |
sed -i "s%\!--project name=\"{DEVICE_TREE_URL_REPO}%project name=\"$(grep -oP '(?<=github.com/).*' <<< ${{ inputs.DEVICE_TREE_URL }})%g" .repo/local_manifests/roomservice.xml
REMOTE_NAME=$(grep -oP '(?<=://).*(?=\.)' <<< ${{ inputs.DEVICE_TREE_URL }})
REMOTE_FETCH=$(grep -oP '(?<=://).*?(?=\/)' <<< ${{ inputs.DEVICE_TREE_URL }})
if [ "${REMOTE_NAME}" != "github" ]; then
sed -i "s%\!--remote name=\"{REMOTE_NAME}%remote name=\"${REMOTE_NAME}%g" .repo/local_manifests/roomservice.xml
sed -i "s%{REMOTE_FETCH}\"/-->%${REMOTE_FETCH}\"/>%g" .repo/local_manifests/roomservice.xml
fi
sed -i "s%\!--project name=\"{DEVICE_TREE_URL_REPO}%project name=\"$(grep -oP "(?<=${REMOTE_FETCH}/).*" <<< ${{ inputs.DEVICE_TREE_URL }})%g" .repo/local_manifests/roomservice.xml
sed -i "s%{DEVICE_PATH}%${{ inputs.DEVICE_PATH }}%g" .repo/local_manifests/roomservice.xml
sed -i "s%{DEVICE_REMOTE_NAME}%github%g" .repo/local_manifests/roomservice.xml
sed -i "s%{DEVICE_REMOTE_NAME}%${REMOTE_NAME}%g" .repo/local_manifests/roomservice.xml
sed -i "s%{DEVICE_TREE_BRANCH}\"/-->%${{ inputs.DEVICE_TREE_BRANCH }}\"/>%g" .repo/local_manifests/roomservice.xml
repo sync -j$(nproc --all)
working-directory: workspace
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -6,6 +6,13 @@ Supports TWRP, OrangeFox, PBRP & SHRP compilation and production

## Release Notes
```
= 2024-03-05
- [TWRP, OrangeFox] Allow non-Github/Gitlab remotes for AOSP device trees
= 2024-02-23
- [OrangeFox] Add input field for additional/optional flags
- [OrangeFox] Add fixes for some unique device trees
= 2024-02-17
- Add PBRP support
- Add SHRP support
@@ -85,6 +92,7 @@ Supports TWRP, OrangeFox, PBRP & SHRP compilation and production
| `REPOPICK_PATCHES` | (Optional) Gerrit patches to include in build (space separated) - if you don't know what this means, then leave blank | 1245 1437 |
| `BUILD_TARGET` | Build Target Partition (boot/recovery/vendor_boot) | recovery |
| `RECOVERY_INSTALLER` | Include recovery installer zip | no |
| `OPTIONAL_FLAGS` | Additional/custom build commands should be entered here | export FOX_VIRTUAL_AB_DEVICE=1 |

-----

2 changes: 2 additions & 0 deletions templates/roomservice.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!--remote name="{REMOTE_NAME}"
fetch="https://{REMOTE_FETCH}"/-->
<!--project name="{DEVICE_TREE_URL_REPO}" path="{DEVICE_PATH}" remote="{DEVICE_REMOTE_NAME}" revision="{DEVICE_TREE_BRANCH}"/-->
</manifest>