Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuanxu/paper-action
GitHub Action using the Inara docker image to generate Open Journal's papers
https://github.com/xuanxu/paper-action
Last synced: 25 days ago
JSON representation
GitHub Action using the Inara docker image to generate Open Journal's papers
- Host: GitHub
- URL: https://github.com/xuanxu/paper-action
- Owner: xuanxu
- Created: 2021-11-03T09:39:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T09:50:07.000Z (5 months ago)
- Last Synced: 2024-12-13T02:42:30.282Z (29 days ago)
- Language: Ruby
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Open Journals :: Paper
This action looks for a `paper.md` file in the specified repository and uses it to compile a Open Journals paper, generating PDF, Crossref XML and JATS outputs.
Under the hood it uses the [openjournals/inara action](https://github.com/openjournals/inara) to generate the output files.
## Usage
Usually this action is used as a step in a workflow that also includes other steps to upload or process the paper after it is generated.
### Inputs
The action accepts the following inputs:
- **issue_id**: Required. The review issue id of the submission for the paper.
- **repository_url**: Required. The repository URL of the submission containing the paper file.
- **branch**: Optional. Git branch where the paper is located.
- **journal**: Optional. The journal data to use for the paper. Default value is `joss`.
- **journal_template**: Optional. The journal template to compile the paper with. Default value is `joss`.
- **compile_mode**: Optional. Compile a draft PDF or a final accepted paper. Possible values are 'draft' (default) or 'accepted'.### Outputs
- **pdf_path**: The path to the generated PDF file
- **jats_path**: The path to the generated JATS file
- **crossref_path**: The path to the generated Crossref XML file
- **citation_file_path**: The path to the generated CITATION.cff file (generated when compilation mode is 'accepted')
- **paper_file_path**: Path to the paper's .md/.tex source file
- **paper_title**: The title of the paper
- **track_name**: Parameterized name of the paper's track### Example
Use it adding it as a step in a workflow `.yml` file in your repo's `.github/workflows/` directory and passing your custom input values.
````yaml
on:
workflow_dispatch:
inputs:
issue_id:
description: 'The issue number of the submission'
jobs:
compiling:
runs-on: ubuntu-latest
steps:
- name: Compile Paper
uses: xuanxu/paper-action@main
with:
issue_id: {{ github.event.inputs.issue_id }}
repository_url: http://github.com/${{ github.repository }}
branch: docs
journal: joss
```