From 9c1ca244b24017fa89168a40585b10d07f9cd308 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Tue, 25 Jan 2022 20:15:14 -0500 Subject: [PATCH] Check out correct branch --- .github/workflows/pr.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 02eb197..ab5db0a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -26,7 +26,7 @@ jobs: uses: actions/cache@v2 with: path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-prs-${{ matrix.build-arch }}-${{ github.sha }} + key: ${{ runner.os }}-buildx-prs-${{ matrix.build-arch }}-${{ github.event.pull_request.head.sha }} restore-keys: | ${{ runner.os }}-buildx-prs-${{ matrix.build-arch }} @@ -36,6 +36,10 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Build and push id: docker_build uses: docker/build-push-action@v2