Skip to content

Release 1.6.0

Release 1.6.0 #10

Workflow file for this run

# ====================================================================
# GitHub Actions workflow for InvenioRDM GitHub Archiver version 1.0.3
# This is available as the file "sample-workflow.yml" from the open-
# source repository for IGA at https://github.com/caltechlibrary/iga/.
# ====================================================================
name: InvenioRDM GitHub Archiver
env:
INVENIO_SERVER: https://data.caltech.edu
# Set to an InvenioRDM record ID to mark release as a new version.
parent_record: dhgzh-arp63
# The variables below 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:
run_iga:
name: "Send to ${{needs.get_repository.outputs.server}}"
runs-on: ubuntu-latest
needs: get_repository
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'}}
get_repository:
name: "Get repository name"
runs-on: ubuntu-latest
outputs:
server: ${{steps.parse.outputs.host}}
steps:
- id: parse
run: echo "host=$(cut -d'/' -f3 <<< ${{env.INVENIO_SERVER}} | cut -d':' -f1)" >> $GITHUB_OUTPUT