diff --git a/.github/workflows/gomod2nix.yml b/.github/workflows/gomod2nix.yml index 273bd55a..ed559b8a 100644 --- a/.github/workflows/gomod2nix.yml +++ b/.github/workflows/gomod2nix.yml @@ -22,6 +22,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@master + with: + fetch-depth: 0 - name: gomod2nix update run: | diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a1033c87..17d287a1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -27,6 +27,8 @@ jobs: fail-fast: true steps: - uses: actions/checkout@master + with: + fetch-depth: 0 - name: Setup Go environment uses: actions/setup-go@master with: diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 3dcbd99e..9ef824c4 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -32,11 +32,12 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 - name: Tidy Modules run: | go mod tidy - go generate main.go + go generate main.go - name: golangci-lint uses: golangci/golangci-lint-action@master diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 86c6ab70..a9438964 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,6 +12,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@master + with: + fetch-depth: 0 - name: Tidy Modules run: |