From d6b8fc9fe8a1f20d75b384d364be88fbb2fee20c Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 29 May 2023 00:23:52 +0100 Subject: [PATCH] Github: Fix CI build checkout with workflow dispatch ref --- .github/workflows/ci-build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 3d68b85958..cce4a9db7f 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -107,8 +107,15 @@ jobs: steps: - name: Checkout + if: github.event_name != 'workflow_dispatch' uses: actions/checkout@v3 + - name: Checkout (Manual) + if: github.event_name == 'workflow_dispatch' + uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.ref }} + - name: Install dependencies run: | echo "::group::Update apt" @@ -179,8 +186,15 @@ jobs: steps: - name: Checkout + if: github.event_name != 'workflow_dispatch' uses: actions/checkout@v3 + - name: Checkout (Manual) + if: github.event_name == 'workflow_dispatch' + uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.ref }} + - name: Install dependencies env: HOMEBREW_NO_AUTO_UPDATE: 1 @@ -263,8 +277,15 @@ jobs: steps: - name: Checkout + if: github.event_name != 'workflow_dispatch' uses: actions/checkout@v3 + - name: Checkout (Manual) + if: github.event_name == 'workflow_dispatch' + uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.ref }} + - name: Prepare cache key id: key shell: powershell @@ -351,8 +372,15 @@ jobs: steps: - name: Checkout + if: github.event_name != 'workflow_dispatch' uses: actions/checkout@v3 + - name: Checkout (Manual) + if: github.event_name == 'workflow_dispatch' + uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.ref }} + - name: Setup MSYS2 uses: msys2/setup-msys2@v2 with: