diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ed96a77..cd244ae2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,8 +72,10 @@ jobs: with: fetch-tags: true + # We don't use checkout/fetch-tags: true because it's broken + # For more information see: https://github.com/actions/checkout/issues/1471 - name: Fetch tags explicitly - run: git fetch --tags + run: git fetch --prune --unshallow --tags - name: Registry login run: | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index bc19f374..e28df822 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,6 +11,12 @@ jobs: with: python-version: "3.12" + # We need to fetch tags because of the helm-docs pre-commit hook which requires the latest tag. + # We don't use checkout/fetch-tags: true because it's broken + # For more information see: https://github.com/actions/checkout/issues/1471 + - name: Fetch tags explicitly + run: git fetch --prune --unshallow --tags + - uses: actions/setup-go@v5 with: go-version-file: "go.mod"