-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yaml
43 lines (42 loc) · 1.43 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: "Datalad Install Action"
description: "Install a specific branch or release of datalad."
inputs:
repository:
description: repository to install datalad from (defaults to datalad/datalad)
default: datalad/datalad
branch:
description: The branch of datalad to use (defaults to master)
default: master
install_root:
description: If installed from a branch and full_clone, install to this root (defaults to /opt/datalad)
default: /opt/datalad
pip_install:
description: Extra pip installs to do
default: ""
release:
description: A datalad release to use (if defined, over-rides branch)
default: ""
full_clone:
description: Instead of cloning with --depth 1, clone the entire git history (branch only)
default: "false"
user:
description: User to provide to GitHub
default: "github-actions"
email:
description: Email to provide to GitHub
default: "[email protected]"
runs:
using: "composite"
steps:
- name: Install Datalad and Dependencies
env:
user: ${{ inputs.user }}
email: ${{ inputs.email }}
branch: ${{ inputs.branch }}
release: ${{ inputs.release }}
full_clone: ${{ inputs.full_clone }}
repository: ${{ inputs.repository }}
install_root: ${{ inputs.install_root }}
pip_install: ${{ inputs.pip_install }}
run: ${{ github.action_path }}/scripts/install.sh
shell: bash