diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index bb63cc6cf..5336968b5 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -24,7 +24,7 @@ jobs: - name: Check for divergence from master run: | - git fetch origin master + git fetch --verbose origin master || (echo "Git fetch failed"; exit 1) UPSTREAM=${{ github.base_ref }} # Target branch of the pull request (usually master) CURRENT=$(git rev-parse HEAD) # Latest commit on the PR branch MERGED=$(git merge-base HEAD origin/$UPSTREAM) # Common ancestor between HEAD and master