Skip to content

Commit 00bc454

Browse files
committed
Remove parent value
1 parent 70a28ce commit 00bc454

File tree

1 file changed

+35
-12
lines changed

1 file changed

+35
-12
lines changed

.github/workflows/iga.yml

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,71 @@
1+
# ====================================================================
2+
# GitHub Actions workflow for InvenioRDM GitHub Archiver version 1.0.3
3+
# This is available as the file "sample-workflow.yml" from the open-
4+
# source repository for IGA at https://github.com/caltechlibrary/iga/.
5+
# ====================================================================
6+
17
name: InvenioRDM GitHub Archiver
28
env:
39
INVENIO_SERVER: https://data.caltech.edu
410

5-
# These variables are IGA options. Please see the docs for info.
11+
# Set to an InvenioRDM record ID to mark release as a new version.
12+
parent_record: none
13+
14+
# The variables below are other IGA options. Please see the docs.
15+
community: none
616
draft: false
717
all_assets: false
818
all_metadata: false
9-
community: none
10-
parent_record: "mfc5m-5qe88"
1119
debug: false
1220

13-
# ~~~~~~~~~~ The rest of this file should be left as-is ~~~~~~~~~~
21+
# ~~~~~~~~~~~~ The rest of this file should be left as-is ~~~~~~~~~~~~
22+
1423
on:
1524
release:
1625
types: [published]
1726
workflow_dispatch:
1827
inputs:
1928
release_tag:
20-
description: "The tag of the release to archive:"
29+
description: "The release tag (empty = latest):"
2130
draft:
2231
default: false
23-
description: "Mark the record as a draft:"
32+
description: "Mark the InvenioRDM record as a draft:"
33+
parent_record:
34+
description: "ID of parent record (for versioning):"
35+
community:
36+
description: "Name of InvenioRDM community (if any):"
2437
all_assets:
2538
default: false
2639
description: "Attach all GitHub assets:"
2740
all_metadata:
2841
default: false
2942
description: "Include additional GitHub metadata:"
30-
community:
31-
description: "Send record to InvenioRDM community:"
32-
parent_record:
33-
description: "ID of parent record (for versioning):"
43+
debug:
44+
default: false
45+
description: "Print debug info in the GitHub log:"
46+
3447
jobs:
35-
Send_to_InvenioRDM:
48+
run_iga:
49+
name: "Send to ${{needs.get_repository.outputs.server}}"
3650
runs-on: ubuntu-latest
51+
needs: get_repository
3752
steps:
3853
- uses: caltechlibrary/iga@main
3954
with:
4055
INVENIO_SERVER: ${{env.INVENIO_SERVER}}
4156
INVENIO_TOKEN: ${{secrets.INVENIO_TOKEN}}
4257
all_assets: ${{github.event.inputs.all_assets || env.all_assets}}
4358
all_metadata: ${{github.event.inputs.all_metadata || env.all_metadata}}
44-
debug: ${{github.event.inputs.debug || 'false'}}
59+
debug: ${{github.event.inputs.debug || env.debug}}
4560
draft: ${{github.event.inputs.draft || env.draft}}
4661
community: ${{github.event.inputs.community || env.community}}
4762
parent_record: ${{github.event.inputs.parent_record || env.parent_record}}
4863
release_tag: ${{github.event.inputs.release_tag || 'latest'}}
64+
get_repository:
65+
name: "Get repository name"
66+
runs-on: ubuntu-latest
67+
outputs:
68+
server: ${{steps.parse.outputs.host}}
69+
steps:
70+
- id: parse
71+
run: echo "host=$(cut -d'/' -f3 <<< ${{env.INVENIO_SERVER}} | cut -d':' -f1)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)