5555 head_repo_name : ${{ github.event.pull_request.head.repo.full_name }}
5656 base_repo : ${{ github.repository }}
5757 library-generation-unit-tests :
58- needs : filter
59- if : ${{ needs.filter.outputs.library == 'true' }}
58+ needs : [ filter, should-run-library-generation-tests]
59+ if : needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
6060 runs-on : ubuntu-22.04
61- needs : should-run-library-generation-tests
62- if : needs.should-run-library-generation-tests.outputs.should_run == 'true'
6361 steps :
6462 - uses : actions/checkout@v4
6563 - uses : actions/setup-python@v5
8583 set -x
8684 python -m unittest discover -s hermetic_build -p "*unit_tests.py"
8785 library-generation-lint-shell :
88- needs : filter
89- if : ${{ needs.filter.outputs.library == 'true' }}
86+ needs : [ filter, should-run-library-generation-tests]
87+ if : needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
9088 runs-on : ubuntu-22.04
91- needs : should-run-library-generation-tests
92- if : needs.should-run-library-generation-tests.outputs.should_run == 'true'
9389 steps :
9490 - uses : actions/checkout@v4
9591 - name : Run ShellCheck
@@ -101,11 +97,9 @@ jobs:
10197 ignore_paths :
10298 .kokoro
10399 library-generation-lint-python :
104- needs : filter
105- if : ${{ needs.filter.outputs.library == 'true' }}
100+ needs : [ filter, should-run-library-generation-tests]
101+ if : needs.filter.outputs.library == 'true' && needs.should-run-library-generation-tests.outputs.should_run == 'true'
106102 runs-on : ubuntu-22.04
107- needs : should-run-library-generation-tests
108- if : needs.should-run-library-generation-tests.outputs.should_run == 'true'
109103 steps :
110104 - uses : actions/checkout@v4
111105 - uses : actions/setup-python@v5
0 commit comments