mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-06-27 05:24:01 +00:00
Add LFS support to the workflows.
This commit is contained in:
@@ -13,6 +13,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: number
|
type: number
|
||||||
default: 0
|
default: 0
|
||||||
|
lfs:
|
||||||
|
description: "Enable Git LFS checkout (for repos with large files)"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
# Caller must declare these permissions:
|
# Caller must declare these permissions:
|
||||||
# permissions:
|
# permissions:
|
||||||
@@ -194,6 +199,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
lfs: ${{ inputs.lfs }}
|
||||||
|
|
||||||
- name: Run workflow prepare script
|
- name: Run workflow prepare script
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -28,6 +28,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
lfs:
|
||||||
|
description: "Enable Git LFS checkout (for repos with large files)"
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
outputs:
|
outputs:
|
||||||
version:
|
version:
|
||||||
description: "The calculated version (without v prefix)"
|
description: "The calculated version (without v prefix)"
|
||||||
@@ -43,6 +48,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
lfs: ${{ inputs.lfs }}
|
||||||
|
|
||||||
- name: Run workflow prepare script
|
- name: Run workflow prepare script
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -98,6 +105,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
lfs: ${{ inputs.lfs }}
|
||||||
|
|
||||||
- name: Run workflow prepare script
|
- name: Run workflow prepare script
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user