diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0a2d00398..9ccef2620 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,6 +45,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: git fetch --tags --force + name: Force-fetch tags to work around actions/checkout#290 # We can't use `--depth 1` here sadly because the GNU config # submodule is not pinned to a particular tag/branch. Please # bump depth (or even better, the submodule), in case of "error: @@ -105,6 +107,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: git fetch --tags --force + name: Force-fetch tags to work around actions/checkout#290 - run: git submodule update --init --depth 32 --jobs 3 - name: Build shell: msys2 {0} @@ -137,6 +141,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: git fetch --tags --force + name: Force-fetch tags to work around actions/checkout#290 - run: git submodule update --init --depth 32 --jobs 3