Skip to content

Commit 69a8729

Browse files
authored
chore: add condition to prioritization workflows (#33150)
### Issue # (if applicable) N/A ### Reason for this change The prioritization workflows should not run in forks. ### Description of changes Added a condition to when the workflows should run. ### 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 188f52d commit 69a8729

3 files changed

+5
-2
lines changed

.github/workflows/project-prioritization-assignment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: PR Prioritization
22
on:
33
pull_request_target:
4-
types:
4+
types:
55
- labeled
66
- opened
77
- reopened
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
prioritize:
13+
if: github.repository == 'aws/aws-cdk'
1314
runs-on: ubuntu-latest
1415
steps:
1516
- uses: actions/checkout@v4

.github/workflows/project-prioritization-r2-assignment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ on:
66

77
jobs:
88
update_project_status:
9+
if: github.repository == 'aws/aws-cdk'
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v4
12-
13+
1314
- name: Check and assign R2 Priority to PRs
1415
uses: actions/github-script@v7
1516
with:

.github/workflows/project-prioritization-r5-assignment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
update_project_status:
9+
if: github.repository == 'aws/aws-cdk'
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)