Skip to content

Commit ef607a6

Browse files
alan-agius4crisbeto
authored andcommitted
ci: add issue labeling and refactor jobs (#32890)
Clean ups (cherry picked from commit 8912b00)
1 parent 345c543 commit ef607a6

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/dev-infra.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,33 @@ 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.
8-
permissions: read-all
10+
permissions:
11+
contents: read
912

1013
jobs:
1114
labels:
15+
if: github.event_name == 'pull_request_target'
1216
runs-on: ubuntu-latest
1317
steps:
14-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15-
- uses: angular/dev-infra/github-actions/pull-request-labeling@e006a332028a4c3cb24e9d92437fac7ae99e2ed5
18+
- uses: angular/dev-infra/github-actions/labeling/pull-request@63fd18d4726829e65f6abe6f15c0fe79f63f1dec
1619
with:
1720
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
1821
post_approval_changes:
22+
if: github.event_name == 'pull_request_target'
1923
runs-on: ubuntu-latest
2024
steps:
21-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22-
- uses: angular/dev-infra/github-actions/pull-request-labeling@e006a332028a4c3cb24e9d92437fac7ae99e2ed5
25+
- uses: angular/dev-infra/github-actions/post-approval-changes@63fd18d4726829e65f6abe6f15c0fe79f63f1dec
2326
with:
2427
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
28+
issue_labels:
29+
if: github.event_name == 'issues'
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: angular/dev-infra/github-actions/labeling/issue@c4344a4e20dbdf9cb8eeb7a7eb91431b98eabd99
33+
with:
34+
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}
35+
google-generative-ai-key: ${{ secrets.GOOGLE_GENERATIVE_AI_KEY }}

0 commit comments

Comments
 (0)