diff --git a/.github/workflows/debian-trust-package-release.yaml b/.github/workflows/debian-trust-package-release.yaml index 14c544ee..89c7fd25 100644 --- a/.github/workflows/debian-trust-package-release.yaml +++ b/.github/workflows/debian-trust-package-release.yaml @@ -16,6 +16,10 @@ jobs: steps: - uses: actions/checkout@v4 + # Adding `fetch-depth: 0` makes sure tags are also fetched. We need + # the tags so `git describe` returns a valid version. + # see https://github.com/actions/checkout/issues/701 for extra info about this option + with: { fetch-depth: 0 } - id: go-version run: | diff --git a/.github/workflows/debian-trust-package-upgrade.yaml b/.github/workflows/debian-trust-package-upgrade.yaml index 80e2d3a6..50f8168e 100644 --- a/.github/workflows/debian-trust-package-upgrade.yaml +++ b/.github/workflows/debian-trust-package-upgrade.yaml @@ -25,6 +25,10 @@ jobs: exit 1 - uses: actions/checkout@v4 + # Adding `fetch-depth: 0` makes sure tags are also fetched. We need + # the tags so `git describe` returns a valid version. + # see https://github.com/actions/checkout/issues/701 for extra info about this option + with: { fetch-depth: 0 } - id: go-version run: |