From 4860c5490131804c0a0bc6dea1c5c2f60c7b5359 Mon Sep 17 00:00:00 2001 From: lazycodebuilder <154446636+lazycodebuilder@users.noreply.github.com> Date: Wed, 7 Feb 2024 08:43:35 +0530 Subject: [PATCH] Node.js 16 actions are deprecated --- .github/workflows/OrangeFox-OFRP.yml | 23 ++++++++++++----------- .github/workflows/PitchBlack-PBRP.yml | 4 ++-- .github/workflows/SkyHawk-SHRP.yml | 4 ++-- .github/workflows/TeamWin-TWRP.yml | 4 ++-- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/OrangeFox-OFRP.yml b/.github/workflows/OrangeFox-OFRP.yml index d31460a..f99dc8d 100644 --- a/.github/workflows/OrangeFox-OFRP.yml +++ b/.github/workflows/OrangeFox-OFRP.yml @@ -97,8 +97,8 @@ jobs: git config --global user.email "154446636+lazycodebuilder@users.noreply.github.com" git clone https://gitlab.com/OrangeFox/sync.git if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '11.0' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '12.1' ]; then - echo "Sync fox_${{ github.event.inputs.MANIFEST_BRANCH }} branch" - echo "CHECK_LEGACY_BRANCH=false" >> $GITHUB_ENV + echo "Sync fox_${{ github.event.inputs.MANIFEST_BRANCH }} branch" + echo "CHECK_LEGACY_BRANCH=false" >> $GITHUB_ENV cd sync ./orangefox_sync.sh --branch ${{ github.event.inputs.MANIFEST_BRANCH }} --path ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }} else @@ -115,19 +115,20 @@ jobs: cd ${{ github.event.inputs.DEVICE_PATH }} echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV - - name: Check Manifest Branch - uses: haya14busa/action-cond@v1.1.1 - id: fox_branch - with: - cond: ${{ github.event.inputs.MANIFEST_BRANCH == '11.0' || github.event.inputs.MANIFEST_BRANCH == '12.1' }} - if_true: lunch twrp_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image - if_false: lunch omni_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka ${{ github.event.inputs.BUILD_TARGET }}image - - - name: Installing python2 for legacy builds + - name: Installing python2 for legacy builds< if: env.CHECK_LEGACY_BRANCH == 'true' run: | sudo apt-get install python2 python-is-python2 + - name: Setup fro building OrangeFox + run: | + cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }} + if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '11.0' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '12.1' ]; then + lunch twrp_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image + else + lunch omni_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka ${{ github.event.inputs.BUILD_TARGET }}image + fi + - name: Building OrangeFox run: | cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }} diff --git a/.github/workflows/PitchBlack-PBRP.yml b/.github/workflows/PitchBlack-PBRP.yml index 1fc367a..3a43729 100644 --- a/.github/workflows/PitchBlack-PBRP.yml +++ b/.github/workflows/PitchBlack-PBRP.yml @@ -147,7 +147,7 @@ jobs: run: | sudo apt-get install python2 python-is-python2 - - name: Building Image + - name: Building PitchBlack run: | cd android-recovery source build/envsetup.sh @@ -170,7 +170,7 @@ jobs: echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV - name: Upload to Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@master with: files: | android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ env.BUILD_TARGET_NAME }}.img diff --git a/.github/workflows/SkyHawk-SHRP.yml b/.github/workflows/SkyHawk-SHRP.yml index 7c341f3..2c477be 100644 --- a/.github/workflows/SkyHawk-SHRP.yml +++ b/.github/workflows/SkyHawk-SHRP.yml @@ -146,7 +146,7 @@ jobs: run: | sudo apt-get install python2 python-is-python2 - - name: Building Image + - name: Building SkyHawk run: | cd android-recovery source build/envsetup.sh @@ -169,7 +169,7 @@ jobs: echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV - name: Upload to Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@master with: files: | android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ env.BUILD_TARGET_NAME }}.img diff --git a/.github/workflows/TeamWin-TWRP.yml b/.github/workflows/TeamWin-TWRP.yml index d4dd6ca..d092384 100644 --- a/.github/workflows/TeamWin-TWRP.yml +++ b/.github/workflows/TeamWin-TWRP.yml @@ -85,7 +85,7 @@ jobs: with: swap-size-gb: 12 - - name: Check Manifest Branch and legacy Branch + - name: Check Manifest Branch run: | if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'twrp-11' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'twrp-12.1' ]; then echo "MANIFEST=https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git" >> $GITHUB_ENV @@ -174,7 +174,7 @@ jobs: echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV - name: Upload to Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@master with: files: | android-recovery/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ env.BUILD_TARGET_NAME }}.img