From c6f4f3d5a7ed14c2141dc921a2fabb991f8098ca Mon Sep 17 00:00:00 2001 From: Anirudh Ramchandran Date: Tue, 17 Sep 2024 23:18:54 -0400 Subject: [PATCH] fix syntax errors --- .github/workflows/lint-and-license-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-and-license-check.yml b/.github/workflows/lint-and-license-check.yml index 0573cceb..e4d7fba1 100644 --- a/.github/workflows/lint-and-license-check.yml +++ b/.github/workflows/lint-and-license-check.yml @@ -85,7 +85,7 @@ jobs: with: script: | const lintOutput = process.env.COMBINED_ERRORS; - const issueNumber = context.issue.number || context.payload.pull_request.number; + const issueNumber = context.payload.pull_request.number; const owner = context.repo.owner; const repo = context.repo.repo; @@ -99,6 +99,7 @@ jobs: }); } else { console.log("No relevant errors to report."); + } - name: Fail if Errors Exist if: env.HAS_ERRORS == 'true'