1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00
goreleaser/scripts/pre-commit.sh
Carlos Alexandro Becker 0c90fb420b
build: fix generate workflow
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-12-26 13:18:46 -03:00

8 lines
141 B
Bash
Executable File

#!/usr/bin/env bash
FILES=$(git diff --cached --name-only --diff-filter=ACMR)
gofumpt -l -w .
golangci-lint run --new --fix
git add $FILES