diff --git a/.github/workflows/isolated-tests.yml b/.github/workflows/isolated-tests.yml index 81bfc4af3..00686cb54 100644 --- a/.github/workflows/isolated-tests.yml +++ b/.github/workflows/isolated-tests.yml @@ -18,6 +18,8 @@ jobs: coverage: none - uses: actions/checkout@v4 + with: + fetch-depth: 2 - name: Get Packages id: get_json diff --git a/bin/build-changed-packages b/bin/build-changed-packages index 914da1c9f..fb028f643 100755 --- a/bin/build-changed-packages +++ b/bin/build-changed-packages @@ -16,7 +16,7 @@ $composerPackages = []; foreach ($tempestPackages as $package) { // Find out if there are changes in this package. - $diff = exec(sprintf('git diff --name-only HEAD -- %s', $package['directory'])); + $diff = exec(sprintf('git diff --name-only HEAD^ -- %s', $package['directory'])); // If there are not any changes, move on to the next package. if (empty($diff)) {