3
3
[ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=cssnr_json-key-value-check-action&metric=alert_status )] ( https://sonarcloud.io/summary/new_code?id=cssnr_json-key-value-check-action )
4
4
[ ![ GitHub Release Version] ( https://img.shields.io/github/v/release/cssnr/json-key-value-check-action?logo=github )] ( https://github.com/cssnr/json-key-value-check-action/releases/latest )
5
5
[ ![ GitHub Last Commit] ( https://img.shields.io/github/last-commit/cssnr/json-key-value-check-action?logo=github&logoColor=white&label=updated )] ( https://github.com/cssnr/json-key-value-check-action/graphs/commit-activity )
6
+ [ ![ Codeberg Last Commit] ( https://img.shields.io/gitea/last-commit/cssnr/json-key-value-check-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F&logo=codeberg&logoColor=white&label=updated )] ( https://codeberg.org/cssnr/json-key-value-check-action )
6
7
[ ![ GitHub Top Language] ( https://img.shields.io/github/languages/top/cssnr/json-key-value-check-action?logo=htmx&logoColor=white )] ( https://github.com/cssnr/json-key-value-check-action )
7
8
[ ![ GitHub Org Stars] ( https://img.shields.io/github/stars/cssnr?style=flat&logo=github&logoColor=white )] ( https://cssnr.github.io/ )
8
9
[ ![ Discord] ( https://img.shields.io/discord/899171661457293343?logo=discord&logoColor=white&label=discord&color=7289da )] ( https://discord.gg/wXy6m2X8wY )
11
12
12
13
Check that JSON Key's Values Match Provided Values.
13
14
14
- * [ Inputs] ( #Inputs )
15
- * [ Examples] ( #Examples )
16
- * [ Support] ( #Support )
17
- * [ Contributing] ( #Contributing )
15
+ - [ Inputs] ( #Inputs )
16
+ - [ Examples] ( #Examples )
17
+ - [ Support] ( #Support )
18
+ - [ Contributing] ( #Contributing )
18
19
19
20
> [ !NOTE]
20
21
> Please submit
@@ -24,7 +25,7 @@ Check that JSON Key's Values Match Provided Values.
24
25
## Inputs
25
26
26
27
| input | required | default | description |
27
- | ----------- | ---------- | --------- | -------------------------------- |
28
+ | --------- | -------- | ------- | ------------------------------ |
28
29
| file | ** Yes** | - | JSON File Path to Validate |
29
30
| keys | ** Yes** | - | Keys to Check, One per Line |
30
31
| values | ** Yes** | - | Values to Verify, One per Line |
@@ -35,67 +36,68 @@ For multiple `keys` and `values` use new lines with a yaml `|`.
35
36
## Examples
36
37
37
38
``` yaml
38
- - name : " Verify JSON"
39
+ - name : ' Verify JSON'
39
40
uses : cssnr/json-key-value-check-action@v1
40
41
with :
41
- file : manifest.json
42
- keys : version
43
- values : ${{ github.ref_name }}
42
+ file : manifest.json
43
+ keys : version
44
+ values : ${{ github.ref_name }}
44
45
` ` `
45
46
46
47
Same as above but also setting an additional key value pair.
47
48
48
49
` ` ` yaml
49
- - name : " Verify JSON"
50
+ - name : ' Verify JSON'
50
51
uses : cssnr/json-key-value-check-action@v1
51
52
with :
52
- file : manifest.json
53
- keys : |
54
- version
55
- version_name
56
- values : |
57
- ${{ github.ref_name }}
58
- "Release ${{ github.ref_name }}"
53
+ file : manifest.json
54
+ keys : |
55
+ version
56
+ version_name
57
+ values : |
58
+ ${{ github.ref_name }}
59
+ "Release ${{ github.ref_name }}"
59
60
` ` `
60
61
61
62
Set a nested key and use file from different directory.
62
63
63
64
` ` ` yaml
64
- - name : " Verify JSON"
65
+ - name : ' Verify JSON'
65
66
uses : cssnr/json-key-value-check-action@v1
66
67
with :
67
- file : src/manifest.json
68
- keys : |
69
- meta.version
70
- values : |
71
- "Release ${{ github.ref_name }}"
68
+ file : src/manifest.json
69
+ keys : |
70
+ meta.version
71
+ values : |
72
+ "Release ${{ github.ref_name }}"
72
73
` ` `
73
74
74
75
# Support
75
76
76
77
For general help or to request a feature, see:
77
78
78
- - Q&A Discussion: https://github.com/cssnr/json-key-value-check-action/discussions/categories/q-a
79
- - Request a Feature: https://github.com/cssnr/json-key-value-check-action/discussions/categories/feature-requests
79
+ - Q&A Discussion: https://github.com/cssnr/json-key-value-check-action/discussions/categories/q-a
80
+ - Request a Feature: https://github.com/cssnr/json-key-value-check-action/discussions/categories/feature-requests
80
81
81
82
If you are experiencing an issue/bug or getting unexpected results, you can:
82
83
83
- - Report an Issue: https://github.com/cssnr/json-key-value-check-action/issues
84
- - Chat with us on Discord: https://discord.gg/wXy6m2X8wY
85
- - Provide General
86
- Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback)
84
+ - Report an Issue: https://github.com/cssnr/json-key-value-check-action/issues
85
+ - Chat with us on Discord: https://discord.gg/wXy6m2X8wY
86
+ - Provide General
87
+ Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback)
87
88
88
89
# Contributing
89
90
90
91
Currently, the best way to contribute to this project is to star this project on GitHub.
91
92
92
93
Additionally, you can support other GitHub Actions I have published:
93
94
94
- - [VirusTotal Action](https://github.com/cssnr/virustotal-action)
95
- - [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action)
96
- - [Update JSON Value Action](https://github.com/cssnr/update-json-value-action)
97
- - [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action)
98
- - [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action)
99
- - [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action)
95
+ - [VirusTotal Action](https://github.com/cssnr/virustotal-action)
96
+ - [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action)
97
+ - [Update JSON Value Action](https://github.com/cssnr/update-json-value-action)
98
+ - [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action)
99
+ - [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action)
100
+ - [Portainer Stack Deploy](https://github.com/cssnr/portainer-stack-deploy-action)
101
+ - [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action)
100
102
101
103
For a full list of current projects to support visit: [https://cssnr.github.io/](https://cssnr.github.io/)
0 commit comments