From ab21c423c2cf99ae1a05baf1ba14c6fdaf3d3b46 Mon Sep 17 00:00:00 2001 From: Tom Morrell Date: Mon, 6 May 2024 16:01:38 -0700 Subject: [PATCH] Update iga.yaml --- .github/workflows/iga.yaml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/iga.yaml b/.github/workflows/iga.yaml index ba9a8e2..114d211 100644 --- a/.github/workflows/iga.yaml +++ b/.github/workflows/iga.yaml @@ -36,17 +36,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Convert CFF uses: caltechlibrary/codemeta2cff@main - name: Commit CFF - uses: EndBug/add-and-commit@v7 + uses: EndBug/add-and-commit@v9 with: message: 'Add CITATION.cff for release' - add: 'CITATION.cff' - branch: 'main' - Send_to_InvenioRDM: + add: "['CITATION.cff']" + run_iga: + name: "Send to ${{needs.get_repository.outputs.server}}" runs-on: ubuntu-latest + needs: [get_repository, CodeMeta2CFF] steps: - uses: caltechlibrary/iga@main with: @@ -54,8 +55,16 @@ jobs: 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'}} + 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