-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
44 lines (44 loc) · 1.34 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Deposit with Open Journals
description: Deposit with Open Journals API call
inputs:
journal_alias:
description: The alias of the Open Journal to deposit with
required: true
journal_secret:
description: The access token to be used to deposit the paper with the journal
required: true
issue_id:
description: The issue number of the submission
required: true
paper_path:
description: The complete filepath of the paper.md file
required: false
outputs:
paper_doi:
description: "DOI of the deposited paper"
value: ${{ steps.theoj-deposit.outputs.paper_doi }}
runs:
using: "composite"
steps:
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.4
bundler-cache: true
cache-version: deposit-with-oj
bundler: Gemfile.lock
working-directory: ${{ github.action_path }}
- name: Deposit with Open Journals
id: theoj-deposit
shell: bash
env:
JOURNAL_ALIAS: ${{ inputs.journal_alias }}
JOURNAL_SECRET: ${{ inputs.journal_secret }}
ISSUE_ID: ${{ inputs.issue_id }}
PAPER_PATH: ${{ inputs.paper_path }}
BUNDLE_GEMFILE: ${{ github.action_path }}/Gemfile
run: |
bundle exec ruby ${{ github.action_path }}/deposit_with_openjournals.rb
branding:
icon: upload-cloud
color: green