Skip to content

Don't create file when document list is empty #80

Don't create file when document list is empty

Don't create file when document list is empty #80

Workflow file for this run

name: Go-Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Checkout
uses: actions/checkout@v3
- name: Run the golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=5m
- name: Go Tidy
run: |
trap 'echo "::error file=go.mod,title=Go Tidy Check::Commit would leave go.mod untidy"' ERR
go mod tidy
git diff --exit-code