From 6fbe01b6e9a444dc77ec3328a54376f4d9387664 Mon Sep 17 00:00:00 2001 From: Tsotne Tabidze Date: Thu, 11 Nov 2021 15:01:28 -0800 Subject: [PATCH] Fix checked out branch for PR docker image build workflow (#2018) Signed-off-by: Tsotne Tabidze --- .github/workflows/pr_integration_tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr_integration_tests.yml b/.github/workflows/pr_integration_tests.yml index 53fd5b8e6f..fdec8deba7 100644 --- a/.github/workflows/pr_integration_tests.yml +++ b/.github/workflows/pr_integration_tests.yml @@ -15,6 +15,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + # pull_request_target runs the workflow in the context of the base repo + # as such actions/checkout needs to be explicit configured to retrieve + # code from the PR. + ref: refs/pull/${{ github.event.pull_request.number }}/merge + submodules: recursive - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx