-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (46 loc) · 1.67 KB
/
iga.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
44
45
46
47
48
name: InvenioRDM GitHub Archiver
env:
INVENIO_SERVER: https://data.caltech.edu
# These variables are IGA options. Please see the docs for info.
draft: false
all_assets: false
all_metadata: false
community: none
parent_record: "6qhkm-7n074"
debug: false
# ~~~~~~~~~~ The rest of this file should be left as-is ~~~~~~~~~~
on:
release:
types: [published]
workflow_dispatch:
inputs:
release_tag:
description: "The tag of the release to archive:"
draft:
default: false
description: "Mark the record as a draft:"
all_assets:
default: false
description: "Attach all GitHub assets:"
all_metadata:
default: false
description: "Include additional GitHub metadata:"
community:
description: "Send record to InvenioRDM community:"
parent_record:
description: "ID of parent record (for versioning):"
jobs:
Send_to_InvenioRDM:
runs-on: ubuntu-latest
steps:
- uses: caltechlibrary/iga@main
with:
INVENIO_SERVER: ${{env.INVENIO_SERVER}}
INVENIO_TOKEN: ${{secrets.INVENIO_TOKEN}}
all_assets: ${{github.event.inputs.all_assets || env.all_assets}}
all_metadata: ${{github.event.inputs.all_metadata || env.all_metadata}}
debug: ${{github.event.inputs.debug || 'false'}}
draft: ${{github.event.inputs.draft || env.draft}}
community: ${{github.event.inputs.community || env.community}}
parent_record: ${{github.event.inputs.parent_record || env.parent_record}}
release_tag: ${{github.event.inputs.release_tag || 'latest'}}