@@ -15,15 +15,25 @@ 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.number }} | ${{ github.event.pull_request.body}}"
22+
23+ - name : Display Issue number
24+ if : ${{ github.event.issue }}
25+ run : echo "This issue is ${{ github.event.issue.number }} | ${{ github.event.issue.body}}"
26+
27+ - name : Display Comment info
28+ run : echo "This comment is on issue # ${{ github.event.issue.number }} | ${{ github.event.comment.body }}"
29+
1930 - name : Get changed files
2031 id : changed-files
2132 uses : tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c
2233 with :
2334 separator : " ,"
2435
2536 - name : Run labeler action for Issue
26- if : ${{ !github.event.issue.pull_request }}
2737 uses : ./.github/actions/labeler-action
2838 env :
2939 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3343 repo : ${{ github.event.repository.name }}
3444 issue_number : ${{ github.event.issue.number }}
3545 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 }}
46+ changed_files : ${{ steps.changed-files.outputs.files }}
0 commit comments