Skip to content

Commit b25c83f

Browse files
Revert "Fix CI workflow syntax: move needs expression from job env to step if conditions"
This reverts commit b71323b.
1 parent b71323b commit b25c83f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/manual.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)