#!/usr/bin/env bash

set -euo pipefail

args=()
if [[ "${GITHUB_ACTIONS:-false}" == "true" ]]; then
    args+=("--out-format" "github-actions")
fi

golangci-lint run "${args[@]}"
