Skip to content

Commit f3cda2e

Browse files
committed
fix variable names
1 parent a6a41dc commit f3cda2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939
with:
4040
github-token: ${{ inputs.github-token }}
4141
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;
4343
if (!issueNumber) {
4444
core.setFailed('No issue number provided and no issue context available');
4545
return;
@@ -82,11 +82,12 @@ runs:
8282
with:
8383
github-token: ${{ inputs.github-token }}
8484
script: |
85-
if (!steps.initial-comment.outputs.comment_id) {
85+
const commentIdString = '${{ steps.initial-comment.outputs.comment_id }}';
86+
if (!commentIdString) {
8687
core.warning('No comment ID found, skipping status update');
8788
return;
8889
}
89-
const commentId = Number('${{ steps.initial-comment.outputs.comment_id }}');
90+
const commentId = Number(commentIdString);
9091
const runUrl = '${{ steps.initial-comment.outputs.run_url }}';
9192
const errorMsg = process.env["ERROR_MSG"];
9293
await github.rest.issues.updateComment({

0 commit comments

Comments
 (0)