From bdfd61d5ea466bf587ddce5250fa9f13933d6eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Tue, 19 Dec 2023 15:35:14 +0200 Subject: [PATCH] PR checker / manual dispatch - add branch handling --- .github/workflows/installation-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/installation-test.yml b/.github/workflows/installation-test.yml index 262967d..e8e42aa 100644 --- a/.github/workflows/installation-test.yml +++ b/.github/workflows/installation-test.yml @@ -25,6 +25,9 @@ jobs: steps: - name: Check out code uses: actions/checkout@v3 + with: + # Use the branch specified by the workflow_dispatch input or the pull_request event + ref: ${{ github.event.inputs.branch || github.event.pull_request.head.ref }} - name: Install Python ${{ matrix.python-ver}} uses: actions/setup-python@v4 with: