diff --git a/.github/scripts/check-tests.mjs b/.github/scripts/check-tests.mjs index df1b16d092..385a96c704 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 changedFiles = await execAsync('git diff --name-only --diff-filter=d master...HEAD') + const changedFiles = await execAsync('git diff --name-only --diff-filter=d origin/master..HEAD') .then(({stdout}) => stdout.trim().split('\n').filter(Boolean)); // Get all .spec.ts and .test.ts files from the packages diff --git a/.github/workflows/check-tests.yml b/.github/workflows/check-tests.yml index 5f9b25b31e..92840dc505 100644 --- a/.github/workflows/check-tests.yml +++ b/.github/workflows/check-tests.yml @@ -19,15 +19,6 @@ jobs: with: fetch-depth: 0 - - name: Fetch origin/master - run: | - git fetch origin master:master - - - name: Get changed files - id: getfile - run: | - echo "::set-output name=files::$(git diff --name-only master..${{ github.ref }})" - - name: Use Node.js uses: actions/setup-node@v3 with: