Skip to content

Commit 16162da

Browse files
committed
VED-812: Add workaround for batch e2e tests conditional job.
1 parent 9be2c98 commit 16162da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/run-e2e-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
wait-for-deployment:
5050
runs-on: ubuntu-latest
5151
environment: ${{ inputs.apigee_environment }}
52+
outputs:
53+
# Workaround for environment-level variables being unavailable in `jobs.<job-id>.if`.
54+
RUN_BATCH_E2E_TESTS: ${{ vars.RUN_BATCH_E2E_TESTS }}
5255
steps:
5356
- name: Wait for API to be available
5457
run: |
@@ -183,7 +186,7 @@ jobs:
183186
batch-e2e-tests:
184187
needs: [wait-for-deployment, e2e-tests]
185188
# Only actually depend on wait-for-deployment, but run after e2e-tests
186-
if: ${{ !cancelled() && needs.wait-for-deployment.result == 'success' && vars.RUN_BATCH_E2E_TESTS == 'true' }}
189+
if: ${{ !cancelled() && needs.wait-for-deployment.result == 'success' && needs.wait-for-deployment.outputs.RUN_BATCH_E2E_TESTS == 'true' }}
187190
runs-on: ubuntu-latest
188191
environment: ${{ inputs.apigee_environment }}
189192
steps:

0 commit comments

Comments
 (0)