File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 99 parent_record : " 6qhkm-7n074"
1010 debug : false
1111
12+ # This variable is a setting for post-archiving CodeMeta file updates.
13+ # If you don't have a CodeMeta file, you can remove the add_doi_codemeta
14+ # job at the bottom of this file.
15+ ref : main
16+
1217# ╭────────────────────────────────────────────╮
1318# │ The rest of this file should be left as-is │
1419# ╰────────────────────────────────────────────╯
4449 name : Send to ${{needs.get_repository.outputs.server}}
4550 runs-on : ubuntu-latest
4651 needs : get_repository
52+ outputs :
53+ record_doi : ${{steps.iga.outputs.record_doi}}
4754 steps :
4855 - uses : caltechlibrary/iga@v1
56+ id : iga
4957 with :
5058 INVENIO_SERVER : ${{env.INVENIO_SERVER}}
5159 INVENIO_TOKEN : ${{secrets.INVENIO_TOKEN}}
6573 - name : Extract name from INVENIO_SERVER
6674 id : parse
6775 run : echo "host=$(cut -d'/' -f3 <<< ${{env.INVENIO_SERVER}} | cut -d':' -f1)" >> $GITHUB_OUTPUT
76+ add_doi_codemeta :
77+ name : " Add ${{needs.run_iga.outputs.record_doi}} to codemeta.json"
78+ needs : run_iga
79+ runs-on : ubuntu-latest
80+ steps :
81+ - name : Checkout
82+ uses : actions/checkout@v4
83+ with :
84+ ref : ${{ env.ref }}
85+ - name : Install sde
86+ run : pip install sde
87+ - name : Add DOI to CodeMeta File
88+ run : sde identifier ${{needs.run_iga.outputs.record_doi}} codemeta.json
89+ - name : Commit CFF
90+ uses : EndBug/add-and-commit@v9
91+ with :
92+ message : ' Add DOI to codemeta.json file'
93+ add : ' codemeta.json'
You can’t perform that action at this time.
0 commit comments