File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ jobs:
116116 build :
117117 needs : [detect-changes, compile-check]
118118 runs-on : ubuntu-latest
119+ env :
120+ BUILD_APP : ${{ needs.detect-changes.outputs.app_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true' }}
121+ BUILD_HUMANOPERATOR : ${{ needs.detect-changes.outputs.humanoperator_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true' }}
119122
120123 steps :
121124 - name : Checkout code
@@ -151,22 +154,22 @@ jobs:
151154 run : chmod +x gradlew
152155
153156 - name : Build app module (debug)
154- if : needs.detect-changes.outputs.app_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true'
157+ if : env.BUILD_APP == 'true'
155158 run : ./gradlew :app:assembleDebug
156159
157160 - name : Build humanoperator module (debug)
158- if : needs.detect-changes.outputs.humanoperator_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true'
161+ if : env.BUILD_HUMANOPERATOR == 'true'
159162 run : ./gradlew :humanoperator:assembleDebug
160163
161164 - name : Upload app APK
162- if : needs.detect-changes.outputs.app_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true'
165+ if : env.BUILD_APP == 'true'
163166 uses : actions/upload-artifact@v4
164167 with :
165168 name : app-debug
166169 path : app/build/outputs/apk/debug/app-debug.apk
167170
168171 - name : Upload humanoperator APK
169- if : needs.detect-changes.outputs.humanoperator_changed == 'true' || needs.detect-changes.outputs.shared_changed == 'true'
172+ if : env.BUILD_HUMANOPERATOR == 'true'
170173 uses : actions/upload-artifact@v4
171174 with :
172175 name : humanoperator-debug
You can’t perform that action at this time.
0 commit comments