Skip to content

Commit

Permalink
added another check to validate the if statment
Browse files Browse the repository at this point in the history
  • Loading branch information
markgov committed Dec 19, 2024
1 parent d31d58f commit ed57fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable_terraform_plan_apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
const workflowId = "${{ env.WORKSPACE_NAME }}";
const identifier = workflowId ? `_${workflowId}_\n` : `_${{ inputs.workflow_id }}_\n`;
const summary = `\`${{ steps.show.outputs.summary }}\``;
const issue_number = context.payload.pull_request.number;
const issue_number = context.payload.pull_request ? context.payload.pull_request.number : null;
if (!issue_number) {
console.log('No issue number found, skipping comment.');
return;
Expand Down

0 comments on commit ed57fe0

Please sign in to comment.