Skip to content

GitHub Actions - Validate your plugin.json

License

Notifications You must be signed in to change notification settings

voxelite/plugin-json-validator

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Voxelite plugin.json Validator

GitHub Action to validate Voxelite's plugin.json (main information about the plugin).

Checks:

  • Presence of all required fields
  • Valid characters (especially for plugin's codename)
  • Voxelite impersonation prevention

Inputs

file

Required

Path to your plugin.json. Default "plugin.json" in current directory.

official

Set to true for official Voxelite plugins. Causes the validator to not check against official names.

Do not use this unless you are an official plugin. It does not give you any advantage, just ignores checks for official-sounding names.

Outputs

codename

Parsed codename from the plugin.

version

Parsed version from the plugin.

alias

Comma-separated list of codenames.

depends

Plugins this one directly depends on.

other_plugins

Other plugins mentioned in plugin relations like depends or recommends.

Example usage

- name: plugin.json validation
  uses: voxelite/plugin-json-validator@v1
- name: plugin.json validation
  uses: voxelite/plugin-json-validator@v1
  with:
    file: path/to/plugin.json

For plugin.json format look into official documentation, some examples can be found in test directory.

About

GitHub Actions - Validate your plugin.json

Resources

License

Stars

Watchers

Forks

Packages

No packages published