mirror of
https://github.com/thegeeklab/wp-git-clone.git
synced 2024-11-22 00:10:39 +00:00
docs: fix default value property in data file
This commit is contained in:
parent
5776b9b829
commit
c539d62bbf
@ -11,7 +11,7 @@ properties:
|
||||
type: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $v.Default }}
|
||||
defaultvalue: {{ . }}
|
||||
defaultValue: {{ . | toString }}
|
||||
{{- end }}
|
||||
required: {{ default false $v.Required }}
|
||||
{{ end -}}
|
||||
|
@ -4,28 +4,28 @@ properties:
|
||||
description: |
|
||||
Change branch name.
|
||||
type: string
|
||||
defaultvalue: "main"
|
||||
defaultValue: "main"
|
||||
required: false
|
||||
|
||||
- name: commit_ref
|
||||
description: |
|
||||
Git commit ref.
|
||||
type: string
|
||||
defaultvalue: "refs/heads/main"
|
||||
defaultValue: "refs/heads/main"
|
||||
required: false
|
||||
|
||||
- name: commit_sha
|
||||
description: |
|
||||
Git commit sha.
|
||||
type: string
|
||||
defaultvalue: $CI_COMMIT_SHA
|
||||
defaultValue: $CI_COMMIT_SHA
|
||||
required: false
|
||||
|
||||
- name: depth
|
||||
description: |
|
||||
Clone depth.
|
||||
type: integer
|
||||
defaultvalue: 0
|
||||
defaultValue: 0
|
||||
required: false
|
||||
|
||||
- name: insecure_skip_ssl_verify
|
||||
@ -34,49 +34,49 @@ properties:
|
||||
|
||||
Activating this option is insecure and should be avoided in most cases.
|
||||
type: bool
|
||||
defaultvalue: false
|
||||
defaultValue: false
|
||||
required: false
|
||||
|
||||
- name: lfs
|
||||
description: |
|
||||
Whether to retrieve LFS content if available.
|
||||
type: bool
|
||||
defaultvalue: true
|
||||
defaultValue: true
|
||||
required: false
|
||||
|
||||
- name: partial
|
||||
description: |
|
||||
Enable/disable partial clone.
|
||||
type: bool
|
||||
defaultvalue: false
|
||||
defaultValue: false
|
||||
required: false
|
||||
|
||||
- name: recursive
|
||||
description: |
|
||||
Clone submodules.
|
||||
type: bool
|
||||
defaultvalue: true
|
||||
defaultValue: true
|
||||
required: false
|
||||
|
||||
- name: remote
|
||||
description: |
|
||||
Git remote HTTP clone url.
|
||||
type: string
|
||||
defaultvalue: $CI_REPO_CLONE_URL
|
||||
defaultValue: $CI_REPO_CLONE_URL
|
||||
required: false
|
||||
|
||||
- name: remote_ssh
|
||||
description: |
|
||||
Git remote SSH clone url.
|
||||
type: string
|
||||
defaultvalue: $CI_REPO_CLONE_SSH_URL
|
||||
defaultValue: $CI_REPO_CLONE_SSH_URL
|
||||
required: false
|
||||
|
||||
- name: safe_directory
|
||||
description: |
|
||||
Define/replace safe directories.
|
||||
type: string
|
||||
defaultvalue: $CI_WORKSPACE
|
||||
defaultValue: $CI_WORKSPACE
|
||||
required: false
|
||||
|
||||
- name: ssh_key
|
||||
@ -95,33 +95,33 @@ properties:
|
||||
description: |
|
||||
Update submodules via partial clone (`depth=1`).
|
||||
type: bool
|
||||
defaultvalue: true
|
||||
defaultValue: true
|
||||
required: false
|
||||
|
||||
- name: submodules_update_remote
|
||||
description: |
|
||||
Update remote submodules.
|
||||
type: bool
|
||||
defaultvalue: false
|
||||
defaultValue: false
|
||||
required: false
|
||||
|
||||
- name: tags
|
||||
description: |
|
||||
Fetch git tags during clone.
|
||||
type: bool
|
||||
defaultvalue: true
|
||||
defaultValue: true
|
||||
required: false
|
||||
|
||||
- name: use_ssh
|
||||
description: |
|
||||
Using SSH for git clone.
|
||||
type: bool
|
||||
defaultvalue: false
|
||||
defaultValue: false
|
||||
required: false
|
||||
|
||||
- name: workdir
|
||||
description: |
|
||||
Path to clone git repository.
|
||||
type: string
|
||||
defaultvalue: $CI_WORKSPACE
|
||||
defaultValue: $CI_WORKSPACE
|
||||
required: false
|
||||
|
Loading…
Reference in New Issue
Block a user