From 4b2dadd923340d49634be708ea6481c9112d2980 Mon Sep 17 00:00:00 2001 From: Henri Ervasti Date: Mon, 12 Aug 2024 11:04:33 +0200 Subject: [PATCH] [QMI-096] Checking out main code in pull request before running reusable code. --- .github/workflows/pull-request-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request-ci.yml b/.github/workflows/pull-request-ci.yml index e225502..3efc12f 100644 --- a/.github/workflows/pull-request-ci.yml +++ b/.github/workflows/pull-request-ci.yml @@ -14,15 +14,15 @@ on: jobs: build: + - name: Check out the repository + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} runs-on: ubuntu-latest strategy: max-parallel: 3 matrix: python-version: ["3.8", "3.9", "3.10"] - - name: Check out the repository - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} steps: - name: Use reusable workflow