Skip to content

JSON Key Value Check

Actions
Check that JSON Key s Values Match Provided Values
v2.0.1
Latest
Star (1)

GitHub Tag Major GitHub Tag Minor GitHub Release Version GitHub Dist Size Action Run Using Workflow Release Workflow Test Workflow Lint Quality Gate Status GitHub Last Commit Codeberg Last Commit GitHub Contributors GitHub Repo Size GitHub Top Language GitHub Discussions GitHub Forks GitHub Repo Stars GitHub Org Stars Discord Ko-fi

JSON Key Value Check Action

Check that JSON Key's Values Match Provided Values.

Note

Please submit a Feature Request for new features or Open an Issue if you find any bugs.

Inputs

Input Default Description of the Input
file Required JSON File Path to Validate
keys Required Keys to Check, One per Line
values Required Values to Verify, One per Line
seperator . Nested Key Seperator

For multiple keys and values use new lines with a yaml |.

Examples

- name: 'Verify JSON'
  uses: cssnr/json-key-value-check-action@v2
  with:
    file: manifest.json
    keys: version
    values: ${{ github.ref_name }}

Same as above but also setting an additional key value pair.

- name: 'Verify JSON'
  uses: cssnr/json-key-value-check-action@v2
  with:
    file: manifest.json
    keys: |
      version
      version_name
    values: |
      ${{ github.ref_name }}
      "Release ${{ github.ref_name }}"

Set a nested key and use file from different directory.

- name: 'Verify JSON'
  uses: cssnr/json-key-value-check-action@v2
  with:
    file: src/manifest.json
    keys: |
      meta.version
    values: |
      "Release ${{ github.ref_name }}"

For more examples, you can check out other projects using this action:
https://github.com/cssnr/json-key-value-check-action/network/dependents

Tags

The following rolling tags are maintained.

Version Tag Rolling Bugs Feat. Name Target Example
GitHub Tag Major Major vN.x.x vN
GitHub Tag Minor Minor vN.N.x vN.N
GitHub Release Micro vN.N.N vN.N.N

You can view the release notes for each version on the releases page.

The Major tag is recommended. It is the most up-to-date and always backwards compatible. Breaking changes would result in a Major version bump. At a minimum you should use a Minor tag.

Support

For general help or to request a feature see:

If you are experiencing an issue/bug or getting unexpected results you can:

For more information, see the CSSNR SUPPORT.md.

Contributing

If you would like to submit a PR, please review the CONTRIBUTING.md.

Please consider making a donation to support the development of this project and additional open source projects.

Ko-fi

Additionally, you can support other GitHub Actions I have published:

❔ Unpublished Actions

These actions are not published on the Marketplace, but may be useful.


📝 Template Actions

These are basic action templates that I use for creating new actions.

Note: The docker-test-action builds, runs and pushes images to GitHub Container Registry.


For a full list of current projects visit: https://cssnr.github.io/

JSON Key Value Check is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Check that JSON Key s Values Match Provided Values
v2.0.1
Latest

JSON Key Value Check is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.