Skip to content

Commit 500b47d

Browse files
josephperrottalan-agius4
authored andcommitted
ci: add issue_labels job to dev-infra workflow
(cherry picked from commit 6034178)
1 parent 33a3172 commit 500b47d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/dev-infra.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,35 @@ name: DevInfra
33
on:
44
pull_request_target:
55
types: [opened, synchronize, reopened]
6+
issues:
7+
types: [opened, reopened]
68

79
# Declare default permissions as read only.
810
permissions:
911
contents: read
1012

1113
jobs:
1214
labels:
15+
if: github.event_name == 'pull_request_target'
1316
runs-on: ubuntu-latest
1417
steps:
1518
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1619
- uses: angular/dev-infra/github-actions/labeling/pull-request@63fd18d4726829e65f6abe6f15c0fe79f63f1dec
1720
with:
1821
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
1922
post_approval_changes:
23+
if: github.event_name == 'pull_request_target'
2024
runs-on: ubuntu-latest
2125
steps:
2226
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2327
- uses: angular/dev-infra/github-actions/post-approval-changes@63fd18d4726829e65f6abe6f15c0fe79f63f1dec
2428
with:
2529
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
30+
issue_labels:
31+
if: github.event_name == 'issues'
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: angular/dev-infra/github-actions/labeling/issue@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
35+
with:
36+
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
37+
google-generative-ai-key: ${{ secrets.GOOGLE_GENERATIVE_AI_KEY }}

0 commit comments

Comments
 (0)