willynilly/same-version
Checks whether your GitHub tag/release version matches the version declared in CITATION.cff, pyproject.toml, codemeta.json, .zenodo.json, package.json, and setup.py. Canonical tag version is parsed using PEP 440, but package.json uses SemVer comparison.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| fail_for_missing_file | Fail for any checked file that is missing | no | false |
| check_github_event | check-github-event | no | false |
| github_event_name | GitHub event name (push, release, or pull_request event) | no | — |
| github_event_ref | GitHub ref (for push event) | no | — |
| github_event_release_tag | GitHub release tag name (for release event) | no | — |
| check_citation_cff | Check `CITATION.cff`? (`true/false`) | no | true |
| citation_cff_path | Path to CITATION.cff | no | CITATION.cff |
| check_pyproject_toml | Check pyproject.toml? (true/false) | no | true |
| pyproject_toml_path | Path to pyproject.toml | no | pyproject.toml |
| check_codemeta_json | Check codemeta.json? (true/false) | no | true |
| codemeta_json_path | Path to codemeta.json | no | codemeta.json |
| check_zenodo_json | Check .zenodo.json? (true/false) | no | true |
| zenodo_json_path | Path to .zenodo.json | no | .zenodo.json |
| check_package_json | Check package.json? (true/false) | no | true |
| package_json_path | Path to package.json | no | package.json |
| check_setup_py | Check setup.py? (true/false) | no | true |
| setup_py_path | Path to setup.py | no | setup.py |
| check_r_description | Check R DESCRIPTION file? (true/false) | no | true |
| r_description_path | Path to R DESCRIPTION file | no | DESCRIPTION |
| check_composer_json | Check composer.json? (true/false) | no | true |
| composer_json_path | Path to composer.json | no | composer.json |
| check_pom_xml | Check pom.xml? (true/false) | no | true |
| pom_xml_path | Path to pom.xml | no | pom.xml |
| check_cargo_toml | Check cargo.toml? (true/false) | no | true |
| cargo_toml_path | Path to Cargo.toml | no | Cargo.toml |
| check_setup_cfg | Check setup.cfg? (true/false) | no | true |
| setup_cfg_path | Path to setup.cfg | no | setup.cfg |
| check_py_version_assignment | Check Python file with __version__ assignment? (true/false) | no | false |
| py_version_assignment_path | Path to Python file with __version__ assignment | no | — |
| check_nuspec | Check .nuspec? (true/false) | no | true |
| nuspec_path | Path to .nuspec | no | .nuspec |
| check_ro_crate_metadata_json | Check ro-crate-metadata.json? (true/false) | no | false |
| ro_crate_metadata_json_path | Path to ro-crate-metadata.json | no | ro-crate-metadata.json |
| ro_crate_metadata_json_id | @id of the resource in ro-crate-metadata.json | no | — |
Outputs
no outputs