Skip to content

Commit 7ca058d

Browse files
committed
only run layer build when needed
1 parent 7ffc0b8 commit 7ca058d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,14 @@ jobs:
167167
changed_browser_integration:
168168
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
169169
'@sentry-internal/browser-integration-tests') }}
170+
changed_aws_serverless:
171+
${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
172+
'@sentry/aws-serverless') }}
170173

171174
job_build_layer:
172175
name: Build Lambda layer
173176
needs: [job_get_metadata, job_build]
177+
if: needs.job_build.outputs.changed_aws_serverless == 'true' || github.event_name != 'pull_request'
174178
timeout-minutes: 10
175179
runs-on: ubuntu-24.04
176180
steps:

0 commit comments

Comments
 (0)