feat: allow external eval binary (jsonnet or tk) #435
Workflow file for this run
This file contains hidden or 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
| name: jsonnetfmt | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| jsonnetfmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version-file: go.mod | |
| - name: Format | |
| run: | | |
| go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest | |
| ./scripts/jsonnetfmt.sh | |
| - run: | | |
| STATUS="$(git status --porcelain)" | |
| test -z "${STATUS}" || { | |
| echo "Found changes after formatting. Run jsonnetfmt on the following files:" | |
| echo "${STATUS}" | |
| exit 1 | |
| } |