Skip to content

Setup Jsonnet

Actions

About

Setup jsonnet and jsonnet-bundler
v2
Latest
Star (4)

Tags

 (1)

Setup Jsonnet

This GitHub Action installs jsonnet binaries. Installed binaries are:

  • jsonnet
  • jsonnetfmt
  • jb

Source files are:

Refer to each repository to check licenses of binaries to install.

Usage

Example workflow

name: Jsonnet
on:
  pull_request:
  push:

jobs:
  format:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: kobtea/setup-jsonnet-action@v3
      - run: |
          jb install
          find . -type f | xargs -IFILE bash -c "jsonnetfmt FILE | diff -u FILE -"

Develop this action

Install the dependencies

$ npm install

Format, test, and build the action

$ npm run all

Package for distribution

$ npm run bundle

Publish a new release

Commit the rebuilt dist/ directory and push a new tag:

$ git add dist
$ git commit -m "chore: rebuild dist for vX"
$ git tag vX
$ git push origin vX

See the versioning documentation

Setup Jsonnet 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

Setup jsonnet and jsonnet-bundler
v2
Latest

Tags

 (1)

Setup Jsonnet 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.