File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 39
39
with :
40
40
github-token : ${{ inputs.github-token }}
41
41
script : |
42
- const issueNumber = '${{ inputs.github-issue-number }}' ? Number('${{ inputs.github-issue-number }}') : github. context.issue.number;
42
+ const issueNumber = '${{ inputs.github-issue-number }}' ? Number('${{ inputs.github-issue-number }}') : context.issue.number;
43
43
if (!issueNumber) {
44
44
core.setFailed('No issue number provided and no issue context available');
45
45
return;
@@ -82,11 +82,12 @@ runs:
82
82
with :
83
83
github-token : ${{ inputs.github-token }}
84
84
script : |
85
- if (!steps.initial-comment.outputs.comment_id) {
85
+ const commentIdString = '${{ steps.initial-comment.outputs.comment_id }}';
86
+ if (!commentIdString) {
86
87
core.warning('No comment ID found, skipping status update');
87
88
return;
88
89
}
89
- const commentId = Number('${{ steps.initial-comment.outputs.comment_id }}' );
90
+ const commentId = Number(commentIdString );
90
91
const runUrl = '${{ steps.initial-comment.outputs.run_url }}';
91
92
const errorMsg = process.env["ERROR_MSG"];
92
93
await github.rest.issues.updateComment({
You can’t perform that action at this time.
0 commit comments