From 18b88d10ede63ba1fe3fdf316792d6b0dcdd8faf Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Fri, 19 Dec 2025 02:15:13 +0000 Subject: [PATCH] Add LFS support to the workflows. --- .github/workflows/go-pr.yaml | 6 ++++++ .github/workflows/go-release.yaml | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/go-pr.yaml b/.github/workflows/go-pr.yaml index 04e7d2f..ce00133 100644 --- a/.github/workflows/go-pr.yaml +++ b/.github/workflows/go-pr.yaml @@ -13,6 +13,11 @@ on: required: false type: number default: 0 + lfs: + description: "Enable Git LFS checkout (for repos with large files)" + required: false + type: boolean + default: false # Caller must declare these permissions: # permissions: @@ -194,6 +199,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + lfs: ${{ inputs.lfs }} - name: Run workflow prepare script shell: bash diff --git a/.github/workflows/go-release.yaml b/.github/workflows/go-release.yaml index 8dc5b37..4e17c55 100644 --- a/.github/workflows/go-release.yaml +++ b/.github/workflows/go-release.yaml @@ -28,6 +28,11 @@ on: required: false type: string default: "" + lfs: + description: "Enable Git LFS checkout (for repos with large files)" + required: false + type: boolean + default: false outputs: version: description: "The calculated version (without v prefix)" @@ -43,6 +48,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + lfs: ${{ inputs.lfs }} - name: Run workflow prepare script shell: bash @@ -98,6 +105,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + lfs: ${{ inputs.lfs }} - name: Run workflow prepare script shell: bash