4949 default : false
5050 type : boolean
5151 required : false
52+ skip_lambda_layer :
53+ description : " Skip publishing Lambda Layers as it can publish duplicated versions of the same layer. Useful for semi-failed releases"
54+ type : boolean
55+ required : false
56+
5257 workflow_call :
5358 inputs :
5459 latest_published_version :
7277 description : " Sealed source code integrity hash"
7378 type : string
7479 required : true
80+ skip_lambda_layer :
81+ description : " Skip publishing Lambda Layers as it can publish duplicated versions of the same layer. Useful for semi-failed releases"
82+ default : false
83+ type : boolean
84+ required : false
7585
7686permissions :
7787 contents : read
@@ -180,6 +190,7 @@ jobs:
180190 source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
181191
182192 prod :
193+ if : ${{ !inputs.skip_lambda_layer }}
183194 needs : beta
184195 # lower privilege propagated from parent workflow (release-v3.yml)
185196 permissions :
@@ -195,41 +206,39 @@ jobs:
195206 source_code_artifact_name : ${{ inputs.source_code_artifact_name }}
196207 source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
197208
198- # UNCOMMENT sar-beta JOB
199- # sar-beta:
200- # needs: beta # canaries run on Layer Beta env
201- # permissions:
209+ sar-beta :
210+ needs : beta # canaries run on Layer Beta env
211+ permissions :
202212 # lower privilege propagated from parent workflow (release.yml)
203- # id-token: write
204- # contents: read
205- # pull-requests: none
206- # pages: none
207- # uses: ./.github/workflows/reusable_deploy_v3_sar.yml
208- # secrets: inherit
209- # with:
210- # stage: "BETA"
211- # environment: "layer-beta"
212- # package-version: ${{ inputs.latest_published_version }}
213- # source_code_artifact_name: ${{ inputs.source_code_artifact_name }}
214- # source_code_integrity_hash: ${{ inputs.source_code_integrity_hash }}
213+ id-token : write
214+ contents : read
215+ pull-requests : none
216+ pages : none
217+ uses : ./.github/workflows/reusable_deploy_v3_sar.yml
218+ secrets : inherit
219+ with :
220+ stage : " BETA"
221+ environment : " layer-beta"
222+ package-version : ${{ inputs.latest_published_version }}
223+ source_code_artifact_name : ${{ inputs.source_code_artifact_name }}
224+ source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
215225
216- # UNCOMMENT sar-prod JOB
217- # sar-prod:
218- # needs: sar-beta
219- # permissions:
226+ sar-prod :
227+ needs : sar-beta
228+ permissions :
220229 # lower privilege propagated from parent workflow (release.yml)
221- # id-token: write
222- # contents: read
223- # pull-requests: none
224- # pages: none
225- # uses: ./.github/workflows/reusable_deploy_v3_sar.yml
226- # secrets: inherit
227- # with:
228- # stage: "PROD"
229- # environment: "layer-prod"
230- # package-version: ${{ inputs.latest_published_version }}
231- # source_code_artifact_name: ${{ inputs.source_code_artifact_name }}
232- # source_code_integrity_hash: ${{ inputs.source_code_integrity_hash }}
230+ id-token : write
231+ contents : read
232+ pull-requests : none
233+ pages : none
234+ uses : ./.github/workflows/reusable_deploy_v3_sar.yml
235+ secrets : inherit
236+ with :
237+ stage : " PROD"
238+ environment : " layer-prod"
239+ package-version : ${{ inputs.latest_published_version }}
240+ source_code_artifact_name : ${{ inputs.source_code_artifact_name }}
241+ source_code_integrity_hash : ${{ inputs.source_code_integrity_hash }}
233242
234243
235244 # Updating the documentation with the latest Layer ARNs is a two-phase process
0 commit comments