diff --git a/.github/workflows/packaging-tests.yml b/.github/workflows/packaging-tests.yml index 5b48c2eddac..82d72e3e5de 100644 --- a/.github/workflows/packaging-tests.yml +++ b/.github/workflows/packaging-tests.yml @@ -26,7 +26,7 @@ jobs: with: # Fetch all branches for merging fetch-depth: 0 - ref: main + ref: ${{ github.event.pull_request.head.sha }} - name: Prepare dependencies run: | sudo DEBIAN_FRONTEND=noninteractive apt-get update @@ -40,8 +40,7 @@ jobs: run: | git config user.name "GitHub Actions" git config user.email "actions@github.com" - git merge "${{ github.event.pull_request.head.sha }}" - + git merge origin/main - name: Quilt patches apply successfully and tests run run: | if test -f debian/patches/series; then