JSON Key Value Check
ActionsTags
(2)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.
input | required | default | description |
---|---|---|---|
file | Yes | - | JSON File Path to Validate |
keys | Yes | - | Keys to Check, One per Line |
values | Yes | - | Values to Verify, One per Line |
seperator | - | . |
Nested Key Seperator |
For multiple keys
and values
use new lines with a yaml |
.
- name: 'Verify JSON'
uses: cssnr/json-key-value-check-action@v1
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@v1
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@v1
with:
file: src/manifest.json
keys: |
meta.version
values: |
"Release ${{ github.ref_name }}"
For general help or to request a feature, see:
- Q&A Discussion: https://github.com/cssnr/json-key-value-check-action/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/json-key-value-check-action/discussions/categories/feature-requests
If you are experiencing an issue/bug or getting unexpected results, you can:
- Report an Issue: https://github.com/cssnr/json-key-value-check-action/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: https://cssnr.github.io/feedback/
Currently, the best way to contribute to this project is to star this project on GitHub.
Additionally, you can support other GitHub Actions I have published:
- Stack Deploy Action
- Portainer Stack Deploy
- VirusTotal Action
- Mirror Repository Action
- Update Version Tags Action
- Update JSON Value Action
- Parse Issue Form Action
- Cloudflare Purge Cache Action
- Mozilla Addon Update Action
- Docker Tags Action
For a full list of current projects to support 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.