From 3572c6d9f40edb267e8879b4f5c313d1ed829a35 Mon Sep 17 00:00:00 2001 From: Adrian Dombeck Date: Wed, 18 Jun 2025 15:00:45 +0200 Subject: [PATCH] ci/build-deb: Don't merge main When building Debian packages from the branch of a PR, we want to actually build what's on the branch, without changes from main. That's especially important when preparing bugfix releases, which we build from the source packages from the CI. We don't want unexpected changes from main to end up in these releases. --- .github/workflows/build-deb.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-deb.yaml b/.github/workflows/build-deb.yaml index 6bc07eb0c2..fa5bdd5ceb 100644 --- a/.github/workflows/build-deb.yaml +++ b/.github/workflows/build-deb.yaml @@ -51,6 +51,8 @@ jobs: steps: - name: Checkout authd code uses: actions/checkout@v4 + with: + ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} - name: Build debian packages and sources uses: canonical/desktop-engineering/gh-actions/common/build-debian@main