@@ -19,6 +19,20 @@ concurrency:
1919 cancel-in-progress : true
2020
2121jobs :
22+ # Update reproducible requirements before unit test for automated dependency update branches
23+ update-reproducibles :
24+ name : Update Reproducible Requirements
25+ if : >
26+ github.repository_owner == 'aws' &&
27+ (github.head_ref == 'update_app_templates_hash' ||
28+ github.head_ref == 'update_sam_transform_version' ||
29+ github.head_ref == 'update_lambda_builders_version')
30+ permissions :
31+ pull-requests : write
32+ contents : write
33+ uses : ./.github/workflows/update-reproducibles.yml
34+ secrets : inherit
35+
2236 run-workflow :
2337 name : PR Workflow
2438 # If any dependent jobs fails, this WF skips which won't block merging PRs
4559
4660 make-pr :
4761 name : make pr / ${{ matrix.os }} / ${{ matrix.python }}
48- if : github.repository_owner == 'aws'
62+ needs : update-reproducibles
63+ if : github.repository_owner == 'aws' && always()
4964 runs-on : ${{ matrix.os }}
5065 strategy :
5166 fail-fast : false
7388
7489 validate-schema :
7590 name : Validate JSON schema
76- if : github.repository_owner == 'aws'
91+ needs : update-reproducibles
92+ if : github.repository_owner == 'aws' && always()
7793 permissions :
7894 pull-requests : write
7995 contents : write
96112
97113 integration-tests :
98114 name : Integ / ${{ matrix.os }} / ${{ matrix.python }} / ${{ matrix.tests_config.name }}
99- if : github.repository_owner == 'aws'
115+ needs : update-reproducibles
116+ if : github.repository_owner == 'aws' && always()
100117 runs-on : ${{ matrix.os }}
101118 env :
102119 AWS_DEFAULT_REGION : us-east-1
@@ -200,7 +217,8 @@ jobs:
200217
201218 smoke-and-functional-tests :
202219 name : ${{ matrix.tests_config.name }} / ${{ matrix.tests_config.os }} / ${{ matrix.python }}
203- if : github.repository_owner == 'aws'
220+ needs : update-reproducibles
221+ if : github.repository_owner == 'aws' && always()
204222 runs-on : ${{ matrix.tests_config.os }}
205223 env :
206224 AWS_DEFAULT_REGION : us-east-1
@@ -252,7 +270,8 @@ jobs:
252270
253271 docker-disabled :
254272 name : Docker-disabled Tests / ${{ matrix.os }}
255- if : github.repository_owner == 'aws'
273+ needs : update-reproducibles
274+ if : github.repository_owner == 'aws' && always()
256275 runs-on : ${{ matrix.os }}
257276 env :
258277 SAM_CLI_DEV : " 1"
0 commit comments