-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support installing through a custom GitHub Action
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,20 @@ powerful [JSON Toolkit](https://github.com/sourcemeta/jsontoolkit) library. | |
brew install intelligence-ai/apps/jsonschema | ||
``` | ||
|
||
### From GitHub Actions | ||
|
||
```yaml | ||
- uses: intelligence-ai/jsonschema@v<version | ||
``` | ||
For example: | ||
```yaml | ||
- uses: intelligence-ai/[email protected] | ||
# Then use as usual | ||
- run: jsonschema fmt path/to/schemas --check | ||
``` | ||
### Using the install script helper | ||
```sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: JSON Schema CLI | ||
description: Install the JSON Schema CLI | ||
runs: | ||
using: composite | ||
steps: | ||
# TODO: Install from the latest tag at or before the current commit sha | ||
- name: Install the JSON Schema CLI (latest) | ||
shell: bash | ||
run: | | ||
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/intelligence-ai/jsonschema/main/install -H 'Cache-Control: no-cache, no-store, must-revalidate')" |