Skip to content

Bump actions/setup-go from 5.0.2 to 5.1.0 #304

Bump actions/setup-go from 5.0.2 to 5.1.0

Bump actions/setup-go from 5.0.2 to 5.1.0 #304

Workflow file for this run

name: jsonnetfmt
on:
push:
branches:
- main
pull_request: {}
jobs:
jsonnetfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.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
}