xuanxu / preprint-action

GitHub Action using the inara docker image to generate Open Journal's preprint LaTeX files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Journals :: Preprint

This action looks for a paper.md file in the specified repository and uses it to generate a simple LaTeX file suitable to send to preprint archives.

Under the hood it uses the openjournals/inara action to generate the output file.

Usage

Usually this action is used from an ongoing review on an Open Journal's repository

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.

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.

on:
  workflow_dispatch:
   inputs:
      issue_id:
        description: 'The issue number of the submission'
jobs:
  preprint:
    runs-on: ubuntu-latest
    steps:
      - name: Generate preprint
        uses: xuanxu/preprint-action@main
        with:
          issue_id: {{ github.event.inputs.issue_id }}
          repository_url: http://github.com/${{ github.repository }}
          branch: docs
          journal: joss
```

About

GitHub Action using the inara docker image to generate Open Journal's preprint LaTeX files

License:MIT License


Languages

Language:Ruby 100.0%