4545jobs :
4646 build :
4747 if : github.event.repository.owner.id == github.event.sender.id
48- runs-on : ubuntu-18.04
49- # You can use either of the ubuntu-18.04 or ubuntu-20.04 runner
48+ runs-on : ubuntu-20.04
5049 steps :
5150 - name : Display Run Parameters
5251 run : |
8887 ssh-private-key : |
8988 ${{ secrets.SSH_PRIVATE_KEY }}
9089
91- - name : Set variables
92- run : |
93- echo "::set-output name=date::$(date +%F)"
94- id : var
95-
9690 - name : Install repo
9791 run : |
9892 mkdir ~/bin
10498 run : |
10599 mkdir workspace
106100 cd workspace
107- echo "::set-output name=pwd:: $(pwd)"
101+ echo "workspace-folder= $(pwd)" >> $GITHUB_OUTPUT
108102 git config --global user.name "Captain Throwback"
109103 git config --global user.email "[email protected] " 110104 repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
@@ -118,15 +112,15 @@ jobs:
118112 - name : Clone device tree
119113 run : |
120114 git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
121- working-directory : ${{ steps.pwd.outputs.pwd }}
115+ working-directory : ${{ steps.pwd.outputs.workspace-folder }}
122116
123117 - name : Clone common tree
124118 if : |
125119 github.event.inputs.COMMON_TREE_URL != null
126120 && github.event.inputs.COMMON_PATH != null
127121 run : |
128122 git clone ${{ github.event.inputs.COMMON_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.COMMON_PATH }}
129- working-directory : ${{ steps.pwd.outputs.pwd }}
123+ working-directory : ${{ steps.pwd.outputs.workspace-folder }}
130124
131125 - name : Check Build Tree
132126 uses : haya14busa/action-cond@v1
@@ -140,27 +134,20 @@ jobs:
140134 run : |
141135 bash ${GITHUB_WORKSPACE}/scripts/convert.sh ${{ github.event.inputs.DEVICE_PATH }}/${{ steps.buildtree.outputs.value }}.dependencies
142136 repo sync -j$(nproc --all)
143- working-directory : ${{ steps.pwd.outputs.pwd }}
137+ working-directory : ${{ steps.pwd.outputs.workspace-folder }}
144138 continue-on-error : true
145139
146140 - name : Set Swap Space
147141 uses : pierotofy/set-swap-space@master
148142 with :
149143 swap-size-gb : 12
150144
151- - name : Check Build Branch
152- if : ${{ github.event.inputs.MANIFEST_BRANCH == 'twrp-12.1' }}
153- run : |
154- source build/envsetup.sh
155- repopick 5405 5540
156- working-directory : ${{ steps.pwd.outputs.pwd }}
157-
158145 - name : Building recovery
159146 run : |
160147 source build/envsetup.sh
161148 export ALLOW_MISSING_DEPENDENCIES=true
162149 lunch ${{ github.event.inputs.MAKEFILE_NAME }}-eng && make clean && make ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all)
163- working-directory : ${{ steps.pwd.outputs.pwd }}
150+ working-directory : ${{ steps.pwd.outputs.workspace-folder }}
164151
165152 - name : Upload to Release
166153 uses : softprops/action-gh-release@v1
0 commit comments