Skip to content

Commit 092fc1c

Browse files
mrbobbytablesjeefy
authored andcommitted
Update labeler.yml
Signed-off-by: Bob Killen <bkillen@linuxfoundation.org> Signed-off-by: Jeffrey Sica <me@jeefy.dev>
1 parent a96c36a commit 092fc1c

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

.github/workflows/labeler.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ jobs:
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
18-
18+
19+
- name: Display PR number
20+
if: ${{ github.event.pull_request }}
21+
run: echo "This pull request is ${{ github.event.pull_request.id }} | ${{ github.event.comment.body}}"
22+
23+
- name: Display Issue number
24+
if: ${{ github.event.issue }}
25+
run: echo "This issue is ${{ github.event.issue.id }} | ${{ github.event.comment.body}}"
26+
1927
- name: Get changed files
2028
id: changed-files
2129
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c
2230
with:
2331
separator: ","
2432

2533
- name: Run labeler action for Issue
26-
if: ${{ !github.event.issue.pull_request }}
2734
uses: ./.github/actions/labeler-action
2835
env:
2936
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -32,20 +39,4 @@ jobs:
3239
owner: ${{ github.repository_owner }}
3340
repo: ${{ github.event.repository.name }}
3441
issue_number: ${{ github.event.issue.number }}
35-
comment_body: ${{ github.event.comment.body }}
36-
37-
- name: Display PR number
38-
run: echo "This pull request is #${{ github.event.pull_request.number }}"
39-
40-
- name: Run labeler action for PR
41-
if: ${{ github.event.issue.pull_request }}
42-
uses: ./.github/actions/labeler-action
43-
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
with:
46-
labels: https://raw.githubusercontent.com/mrbobbytables/cncf-automation/refs/heads/label-config/utilities/labeler/labels.yaml
47-
owner: ${{ github.repository_owner }}
48-
repo: ${{ github.event.repository.name }}
49-
issue_number: ${{ github.event.pull_request.number }}
50-
comment_body: ${{ github.event.comment.body }}
51-
changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
42+
comment_body: ${{ github.event.comment.body }}

0 commit comments

Comments
 (0)