Skip to content

GitHub action to check the validity of the bibliographic references of a paper submitted to Open Journals for review

License

Notifications You must be signed in to change notification settings

openjournals/gh-action-check-references

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Journals :: Check bibtex references

This action checks the validity of the bibliographic references of a paper submitted to Open Journals for review.

The path to the .bib file is extracted from the metadata of the paper file under the bibliography entry.

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.

ENV

For the action to be able to add labels and post comments to the review issue there must be two env vars setted with valid values:

  • GITHUB_TOKEN: The token of the user posting the results of the checks
  • GH_REPO: The repository where the review issue is found, in username/repo-name format

Example

Sample use as a step in a workflow .yml file in a repo's .github/workflows/ directory, setting env and passing custom input values:

name: Repository and paper info
on:
  workflow_dispatch:
    inputs:
      issue_id:
        description: 'The issue number of the submission to post the results'
env:
  GITHUB_TOKEN: ${{ secrets.BOT_USER_TOKEN }}
  GH_REPO: myorg/reviews
jobs:
  doi-validation:
    runs-on: ubuntu-latest
    steps:
      - name: DOI validation
        uses: openjournals/gh-action-check-references@main
        with:
          repository_url: http://github.com/${{ github.repository }}
          branch: paper
          issue_id: ${{ github.event.inputs.issue_id }}
```

About

GitHub action to check the validity of the bibliographic references of a paper submitted to Open Journals for review

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages