goreleaser / goreleaser-action

GitHub Action for GoReleaser
https://github.com/marketplace/actions/goreleaser-action
MIT License
833 stars 73 forks source link

Is there a way to avoid fetch-depth:0 #457

Closed thomaspoignant closed 2 months ago

thomaspoignant commented 2 months ago

I am working with a pretty big repository in terms of activity, and I follow the requirement of using checkout with fetch-depth: 0

 -
    name: Checkout
    uses: actions/checkout@v4
    with:
      fetch-depth: 0

But since my repository has a lot of history (+ considering big size), it can take up to 10 min just for the checkout (example.

Is there a way to use the goreleaser action without having to set fetch-depth: 0 before the action and to still have a proper result?

caarlos0 commented 2 months ago

I think you should be able to specify a bigger number (e.g. fetch-depth: 1000) there, and it should work...

goreleaser will warn about running in a shallow commit, but I believe it'll work anyway (although I haven't tested)

thomaspoignant commented 2 months ago

Thanks @caarlos0 for the tip, I'll try for my next release and reopen here if it does not work.