diff --git a/.github/workflows/Recovery Build.yml b/.github/workflows/Recovery Build.yml index 98e6246e9..0a8ebbf94 100644 --- a/.github/workflows/Recovery Build.yml +++ b/.github/workflows/Recovery Build.yml @@ -90,12 +90,6 @@ jobs: sudo add-apt-repository universe sudo apt -y install libncurses5 - - name: Install OpenJDK - uses: actions/setup-java@v4 - with: - distribution: zulu - java-version: 8 - - name: Check Build Tree uses: haya14busa/action-cond@v1.2.1 id: buildtree @@ -104,6 +98,13 @@ jobs: if_true: aosp if_false: omni + - name: Install OpenJDK + if: steps.buildtree.outputs.value == 'omni' + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 8 + - name: Install repo run: | mkdir ~/bin