Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuanxu/validate-xml-files-action
This action validates Open Journals' JATS and Crossref XML files
https://github.com/xuanxu/validate-xml-files-action
Last synced: 6 days ago
JSON representation
This action validates Open Journals' JATS and Crossref XML files
- Host: GitHub
- URL: https://github.com/xuanxu/validate-xml-files-action
- Owner: xuanxu
- License: mit
- Created: 2022-02-03T09:26:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T09:51:04.000Z (5 months ago)
- Last Synced: 2024-12-10T01:41:58.565Z (13 days ago)
- Language: Ruby
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Open Journals :: Validate JATS & Crossref XML Files
This action validates Open Journals' JATS and Crossref XML files. If an error happens it sends back a message to the review issue.
## Usage
As part of a review process, usually this action is used as a step in a workflow that also includes other steps to generate the XML files.
### Inputs
The action accepts the following inputs:
- **jats_path**: Optional. The path to a JATS file to be validated.
- **crossref_path**: Optional. The path to a Crossref XML file to be validated.
- **validation_mode**: Optional. Posible values: draft (defaut, will allow invalid DOI values) or strict.### ENV
In order to post a comment in the review issue these variables should be set in the env context:
- **GITHUB_TOKEN**: Used to authenticate when using the GitHub API
- **GH_REPO**: The reviews repo
- **ISSUE_ID**: The issue where this submission is being reviewed
- **DEFAULT_ERROR**: An optional default error message