All checks were successful
Exercise test cases / clone-origin-repo (push) Successful in 2m3s
Exercise test cases / clone-custom-ref (push) Successful in 2m7s
Exercise test cases / clone-custom-path (push) Successful in 2m10s
Exercise test cases / clone-recursive (push) Successful in 36s
Exercise test cases / clone-recursive-limited (push) Successful in 34s
Exercise test cases / clone-get-deep-content (push) Successful in 27s
Exercise test cases / clone-recursive-no-data (push) Successful in 31s
This hopefully makes the action pass the schema validation done by the forgejo runner v9+
65 lines
2.4 KiB
YAML
65 lines
2.4 KiB
YAML
name: 'DataLad clone'
|
|
author: 'DataLad team'
|
|
description: >
|
|
Clone a DataLad dataset, or Git(-annex) repository at a particular version,
|
|
and obtain content (recursively)
|
|
inputs:
|
|
server_url:
|
|
description: >
|
|
The base URL for the Forgejo/GitHub instance that you are trying to
|
|
clone from, will fetch from the same instance that the workflow is
|
|
running from unless specified. Example URLs are https://hub.datalad.org
|
|
or https://codeberg.org
|
|
required: false
|
|
repository:
|
|
description: >
|
|
Repository name with owner. For example, `actions/checkout`. More
|
|
generally, this string is appended to the 'server_url'.
|
|
required: false
|
|
token:
|
|
description: >
|
|
Personal access token (PAT) used to fetch the (root) repository. When
|
|
fetching from the instance the workflow is running from, a default
|
|
token is used.
|
|
required: false
|
|
ref:
|
|
description: >
|
|
The branch, tag or SHA to checkout. When checking out the repository that
|
|
triggered a workflow, this defaults to the reference or SHA for that
|
|
event. Otherwise, uses the default branch.
|
|
required: false
|
|
path:
|
|
description: >
|
|
Relative path under `$GITHUB_WORKSPACE` to place the repository at.
|
|
required: false
|
|
recursive:
|
|
description: >
|
|
Whether to checkout subdatasets/submodules. If `true`, subdatasets
|
|
are fetched recursively. Any other value, except `false`, is
|
|
interpreted as a recursion limit (see `datalad get --recursion-limit`).
|
|
default: false
|
|
required: false
|
|
get_content:
|
|
description: >
|
|
Relative paths within the (root) repository, or globs matching
|
|
content that should be obtained. Content here refers to both
|
|
submodules and annexed files (see `get_file_content`). A combination
|
|
with `recursive` also allows for limiting which submodules are
|
|
obtained. By default all content (`.`) is obtained.
|
|
Example: `images/*.jpg assets/`
|
|
required: false
|
|
default: "."
|
|
get_file_content:
|
|
description: >
|
|
By default, all content of (annexed) files, matching `get_content`
|
|
paths or globs is obtained. Setting this flag to `false` disabled
|
|
this, and only matching submodules are clones, without obtaining
|
|
any file content.
|
|
default: true
|
|
required: false
|
|
path:
|
|
description:
|
|
Absolute path to the cloned repository root.
|
|
runs:
|
|
using: 'docker'
|
|
image: Dockerfile
|