From 7f81f750c1008c8d369646122bddcdb2e98e7ae5 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 16:29:44 -0400 Subject: [PATCH] js is hard apparently --- .github/workflows/src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 432dcb84..10db19f2 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -63,10 +63,11 @@ const fileValidator = require('./app/file-validator.js'); }) let isMarkdownValid + let content const isFilePathValid = fileValidator.isValidPaths(fileNames) try { - const content = isFilePathValid && await octokit.getContent(`_data/${actionEvent.pullAuthor}/${actionEvent.pullAuthor}.md`) + content = isFilePathValid && await octokit.getContent(`_data/${actionEvent.pullAuthor}/${actionEvent.pullAuthor}.md`) } catch(err) { console.log(err) } -- knotmirror 0.0.1