diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index a2d6e8a4..5b77b8e0 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -13,18 +13,17 @@ jobs: runs-on: ubuntu-latest if: github.repository == 'kubesphere/kubekey' steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Prepare id: prepare run: | LDFLAGS=$(bash hack/version.sh) echo "ldflags=${LDFLAGS}" >> "$GITHUB_OUTPUT" - - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up Go uses: actions/setup-go@v4 with: