Skip to content

Commit

Permalink
Merge pull request #39 from tmorrell
Browse files Browse the repository at this point in the history
Add CaltechDATA GitHub Archiver
  • Loading branch information
slivingston authored Jan 29, 2024
2 parents c7cd36c + 447e70b commit ba32344
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/iga.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: InvenioRDM GitHub Archiver

env:
INVENIO_SERVER: https://data.caltech.edu

# Set to an InvenioRDM record ID to mark releases as new versions.
parent_record: none

# The remaining variables are other IGA options. Please see the docs.
community: none
draft: false
all_assets: false
all_metadata: false
debug: false

# ~~~~~~~~~~~~~~~~ The rest of this file should be left as-is. ~~~~~~~~~~~~~~~~

on:
release:
types: [published]
workflow_dispatch:
inputs:
release_tag:
description: "The release tag (empty = latest):"
draft:
default: false
description: "Mark the InvenioRDM record as a draft:"
parent_record:
description: "ID of parent record (for versioning):"
community:
description: "Name of InvenioRDM community (if any):"
all_assets:
default: false
description: "Attach all GitHub assets:"
all_metadata:
default: false
description: "Include additional GitHub metadata:"
debug:
default: false
description: "Print debug info in the GitHub log:"
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 || env.debug}}
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'}}

0 comments on commit ba32344

Please sign in to comment.