-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
40 lines (39 loc) · 1.13 KB
/
action.yml
File metadata and controls
40 lines (39 loc) · 1.13 KB
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
# BEGIN: 8zv7t5r2n6p1
name: dataverse-repo-sync
branding:
icon: arrow-up-circle
color: blue
description: |
"This action syncs a directory to a dataset in Dataverse."
inputs:
dataverse_url:
description: "The URL of the Dataverse instance."
required: true
persistent_id:
description: "The persistent ID of the dataset."
required: true
api_token:
description: "The API Token used for authentication"
required: true
directory:
description: "The directory to which the respsitory needs to be synced"
required: true
default: ""
runs:
using: "composite"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install Python"
uses: "actions/setup-python@v2"
with:
python-version: "3.11"
- name: "Upload data"
shell: "bash"
run: |
python3 -m pip install dvuploader requests
python3 ${{ github.action_path }}/repo_uploader.py \
--dataverse-url "${{ inputs.dataverse_url }}" \
--persistent-id "${{ inputs.persistent_id }}" \
--api-token "${{ inputs.api_token }}" \
--directory "${{ inputs.directory }}"