From 9779e8dd561141ebcd3db26c1e6c4b07a570a7cf Mon Sep 17 00:00:00 2001 From: Tom Morrell Date: Tue, 21 Nov 2023 13:27:32 -0800 Subject: [PATCH] Add iga --- .github/workflows/iga.yaml | 48 ++++++++++++++++++++++++++++++++++++++ codemeta.json | 4 ++-- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/iga.yaml diff --git a/.github/workflows/iga.yaml b/.github/workflows/iga.yaml new file mode 100644 index 0000000..46d9458 --- /dev/null +++ b/.github/workflows/iga.yaml @@ -0,0 +1,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: none + 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'}} diff --git a/codemeta.json b/codemeta.json index 0c5a1e9..5be61f1 100644 --- a/codemeta.json +++ b/codemeta.json @@ -6,7 +6,7 @@ "codeRepository": "https://github.com/caltechlibrary/irdm_harvester", "issueTracker": "https://github.com/caltechlibrary/irdm_harvester/issues", "license": "https://data.caltech.edu/license", - "version": "0.0.1", + "version": "0.1.0", "author": [ { "@type": "Person", @@ -21,7 +21,7 @@ }], "developmentStatus": "active", "downloadUrl": - "https://github.com/caltechlibrary/irdm_harvester/archive/0.0.1.zip", + "https://github.com/caltechlibrary/irdm_harvester/archive/0.1.0.zip", "keywords": [ "metadata", "CrossRef",