Skip to content

Commit 812ee49

Browse files
authored
chore(ci): scope codebuild PR build to aws/aws-cdk (#35638)
### Description of changes <!-- What code changes did you make? Why do these changes address the issue? What alternatives did you consider and reject? What design decisions have you made? --> Forks do not have any codebuild setup, so this pr-build should only run for aws/aws-cdk. Currently, it creates noise and the action stays in pending, eventually timing out. https://github.com/aws/aws-cdk/actions/workflows/pr-build.yml action runs on forks to test PR Build ### Checklist - [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 860ce0d commit 812ee49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/codebuild-pr-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ concurrency:
2424

2525
jobs:
2626
build:
27+
# Runner exists only for aws-cdk repo
28+
if: github.repository == 'aws/aws-cdk'
2729
runs-on: codebuild-aws-cdk-github-actions-runner-${{ github.run_id }}-${{ github.run_attempt }}
2830

2931
env:

0 commit comments

Comments
 (0)