From b3beb50e8ff286f775f4b043945da15da5f7d69a Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Fri, 25 Jul 2025 18:07:36 +0100 Subject: [PATCH] ci: Provide fetch-tags and ref when using actions/checkout (#2366) --- .github/workflows/build_impl.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build_impl.yml b/.github/workflows/build_impl.yml index c9db2392..31775539 100644 --- a/.github/workflows/build_impl.yml +++ b/.github/workflows/build_impl.yml @@ -77,6 +77,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + # We need to fetch tags to have correct version in the release + # The workaround is based on https://github.com/actions/checkout/issues/1467 + fetch-tags: true + ref: ${{ github.ref }} - name: Prepare runner uses: ./.github/actions/prepare_runner