Node.js 16 actions are deprecated

This commit is contained in:
lazycodebuilder 2024-02-07 08:43:35 +05:30
parent cea45f7ce3
commit 4860c54901
4 changed files with 18 additions and 17 deletions

View File

@ -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 }}

View File

@ -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

View File

@ -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

View File

@ -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