0
0
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:
Robert Kaussow 2024-01-03 23:26:18 +01:00
parent 5776b9b829
commit c539d62bbf
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 17 additions and 17 deletions

View File

@ -11,7 +11,7 @@ properties:
type: {{ . }} type: {{ . }}
{{- end }} {{- end }}
{{- with $v.Default }} {{- with $v.Default }}
defaultvalue: {{ . }} defaultValue: {{ . | toString }}
{{- end }} {{- end }}
required: {{ default false $v.Required }} required: {{ default false $v.Required }}
{{ end -}} {{ end -}}

View File

@ -4,28 +4,28 @@ properties:
description: | description: |
Change branch name. Change branch name.
type: string type: string
defaultvalue: "main" defaultValue: "main"
required: false required: false
- name: commit_ref - name: commit_ref
description: | description: |
Git commit ref. Git commit ref.
type: string type: string
defaultvalue: "refs/heads/main" defaultValue: "refs/heads/main"
required: false required: false
- name: commit_sha - name: commit_sha
description: | description: |
Git commit sha. Git commit sha.
type: string type: string
defaultvalue: $CI_COMMIT_SHA defaultValue: $CI_COMMIT_SHA
required: false required: false
- name: depth - name: depth
description: | description: |
Clone depth. Clone depth.
type: integer type: integer
defaultvalue: 0 defaultValue: 0
required: false required: false
- name: insecure_skip_ssl_verify - name: insecure_skip_ssl_verify
@ -34,49 +34,49 @@ properties:
Activating this option is insecure and should be avoided in most cases. Activating this option is insecure and should be avoided in most cases.
type: bool type: bool
defaultvalue: false defaultValue: false
required: false required: false
- name: lfs - name: lfs
description: | description: |
Whether to retrieve LFS content if available. Whether to retrieve LFS content if available.
type: bool type: bool
defaultvalue: true defaultValue: true
required: false required: false
- name: partial - name: partial
description: | description: |
Enable/disable partial clone. Enable/disable partial clone.
type: bool type: bool
defaultvalue: false defaultValue: false
required: false required: false
- name: recursive - name: recursive
description: | description: |
Clone submodules. Clone submodules.
type: bool type: bool
defaultvalue: true defaultValue: true
required: false required: false
- name: remote - name: remote
description: | description: |
Git remote HTTP clone url. Git remote HTTP clone url.
type: string type: string
defaultvalue: $CI_REPO_CLONE_URL defaultValue: $CI_REPO_CLONE_URL
required: false required: false
- name: remote_ssh - name: remote_ssh
description: | description: |
Git remote SSH clone url. Git remote SSH clone url.
type: string type: string
defaultvalue: $CI_REPO_CLONE_SSH_URL defaultValue: $CI_REPO_CLONE_SSH_URL
required: false required: false
- name: safe_directory - name: safe_directory
description: | description: |
Define/replace safe directories. Define/replace safe directories.
type: string type: string
defaultvalue: $CI_WORKSPACE defaultValue: $CI_WORKSPACE
required: false required: false
- name: ssh_key - name: ssh_key
@ -95,33 +95,33 @@ properties:
description: | description: |
Update submodules via partial clone (`depth=1`). Update submodules via partial clone (`depth=1`).
type: bool type: bool
defaultvalue: true defaultValue: true
required: false required: false
- name: submodules_update_remote - name: submodules_update_remote
description: | description: |
Update remote submodules. Update remote submodules.
type: bool type: bool
defaultvalue: false defaultValue: false
required: false required: false
- name: tags - name: tags
description: | description: |
Fetch git tags during clone. Fetch git tags during clone.
type: bool type: bool
defaultvalue: true defaultValue: true
required: false required: false
- name: use_ssh - name: use_ssh
description: | description: |
Using SSH for git clone. Using SSH for git clone.
type: bool type: bool
defaultvalue: false defaultValue: false
required: false required: false
- name: workdir - name: workdir
description: | description: |
Path to clone git repository. Path to clone git repository.
type: string type: string
defaultvalue: $CI_WORKSPACE defaultValue: $CI_WORKSPACE
required: false required: false