forked from xuanxu/deposit-with-crossref-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
41 lines (41 loc) · 1.23 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
name: Deposit with Crossref
description: Deposit with Crossref API call
inputs:
crossref_filepath:
description: The complete filepath of the Crossref XML file
required: true
crossref_username:
description: Crossref username doing the deposit
required: true
crossref_password:
description: Crossref password
required: true
crossref_mode:
description: Use test or production crossref calls
required: false
default: ""
runs:
using: "composite"
steps:
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.1
bundler-cache: true
cache-version: deposit-with-crossref
bundler: Gemfile.lock
working-directory: ${{ github.action_path }}
- name: Deposit with Crossref
id: deposit_crossref
shell: bash
env:
CROSSREF_FILEPATH: ${{ inputs.crossref_filepath }}
CROSSREF_USERNAME: ${{ inputs.crossref_username }}
CROSSREF_PASSWORD: ${{ inputs.crossref_password }}
CROSSREF_MODE: ${{ inputs.crossref_mode }}
BUNDLE_GEMFILE: ${{ github.action_path }}/Gemfile
run: |
bundle exec ruby ${{ github.action_path }}/deposit_with_crossref.rb
branding:
icon: upload-cloud
color: green