@@ -15,15 +15,22 @@ jobs:
15
15
steps :
16
16
- name : Checkout code
17
17
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
+
19
27
- name : Get changed files
20
28
id : changed-files
21
29
uses : tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c
22
30
with :
23
31
separator : " ,"
24
32
25
33
- name : Run labeler action for Issue
26
- if : ${{ !github.event.issue.pull_request }}
27
34
uses : ./.github/actions/labeler-action
28
35
env :
29
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
39
owner : ${{ github.repository_owner }}
33
40
repo : ${{ github.event.repository.name }}
34
41
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