Skip to content

Pin prek-action to commit SHA (#378) #77

Pin prek-action to commit SHA (#378)

Pin prek-action to commit SHA (#378) #77

Workflow file for this run

name: prek
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: prek-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
prek:
name: Run prek hooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.25
cache: true
- name: Install shfmt
run: |
go install mvdan.cc/sh/v3/cmd/shfmt@latest
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- uses: j178/prek-action@0bb87d7f00b0c99306c8bcb8b8beba1eb581c037 # v1 (v1.1.1)
with:
extra-args: '--all-files --verbose'