File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,18 @@ jobs:
5353 id : checkout
5454 uses : actions/checkout@v4
5555
56- - name : Test Local Action
56+ - name : Test Local Action And Capture Output
5757 id : test-action
5858 uses : ./
5959 with :
6060 milliseconds : 2000
61- script : |
62- github.rest.issues.createComment({
63- issue_number: context.issue.number,
64- owner: context.repo.owner,
65- repo: context.repo.repo,
66- body: 'This is a sample comment posting from jaychang99's github action!'
67- })
61+
62+ - name : Post comment on PR
63+ uses : peter-evans/create-or-update-comment@v1
64+ with :
65+ issue-number : ${{ github.event.pull_request.number }}
66+ body :
67+ ' The test took ${{ steps.test-action.outputs.time }} milliseconds. '
6868
6969 - name : Print Output
7070 id : output
You can’t perform that action at this time.
0 commit comments