Skip to content

Commit

Permalink
Support installing through a custom GitHub Action (#48)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Jun 3, 2024
1 parent 05039a5 commit 3332acf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
```
Where `X.Y.Z` is replaced with the desired 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
Expand Down
10 changes: 10 additions & 0 deletions action.yml
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')"

0 comments on commit 3332acf

Please sign in to comment.