From 1b7c411f6cb336be3103b5743c58efcb44ac65b7 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Fri, 16 Jun 2023 13:15:12 +0200 Subject: [PATCH] build: fix gh workflow script --- .github/scripts/check-tests.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/check-tests.mjs b/.github/scripts/check-tests.mjs index 9af692b237..865124f142 100644 --- a/.github/scripts/check-tests.mjs +++ b/.github/scripts/check-tests.mjs @@ -44,7 +44,7 @@ const hasFunctionOrClass = async filePath => { const program = async () => { // Run a git command to get a list of all files in the commit - const changedFilesCommand = "git diff --name-only --diff-filter=d origin/master...HEAD"; + const changedFilesCommand = "git diff --name-only --diff-filter=d origin/master... -- HEAD"; const changedFiles = await execAsync(changedFilesCommand).then(({stdout}) => stdout.toString().trim().split('\n')); // Get all .spec.ts and .test.ts files from the packages