Skip to content

Commit 9fa1643

Browse files
committed
fix output
1 parent ef9a221 commit 9fa1643

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/test-negative.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: peter-evans/find-comment@v3
6060
id: fc
6161
with:
62-
issue-number: ${{ steps.action.outputs.comments[0].pull_request }}
62+
issue-number: ${{ steps.action.outputs.result[0].pull_request }}
6363
body-includes: ${{ needs.create-release.outputs.tag }}
6464

6565
- name: Succeed if comment was not found

.github/workflows/test-positive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: peter-evans/find-comment@v3
6060
id: fc
6161
with:
62-
issue-number: ${{ steps.action.outputs.comments[0].pull_request }}
62+
issue-number: ${{ steps.action.outputs.result[0].pull_request }}
6363
body-includes: ${{ needs.create-release.outputs.tag }}
6464

6565
- name: Succeed if comment was found

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ inputs:
2323
description: "The git tag used to determine the release. If omitted, the release will be determined from `github.event.release.id`."
2424
default: ""
2525
outputs:
26-
comments:
26+
result:
2727
description: "A JSON-encoded list of objects detailing the ID of each PR and the comment created by this action."
28-
value: ${{ steps.pr-comment-on-release.outputs.comments }}
28+
value: ${{ steps.pr-comment-on-release.outputs.result }}
2929
runs:
3030
using: "composite"
3131
steps:
@@ -196,7 +196,7 @@ runs:
196196
if (pull_requests.length === 0) {
197197
core.warning(`No Pull Requests associated with ${currentTag} were found.`);
198198
return {
199-
"comments": []
199+
[]
200200
};
201201
}
202202
@@ -213,5 +213,5 @@ runs:
213213
);
214214
215215
return {
216-
"comments": result
216+
result
217217
};

0 commit comments

Comments
 (0)