From 2dfd25d6e3025d682826c6b0976af24d2f70c34d Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Fri, 19 Jul 2024 22:56:47 +0100 Subject: [PATCH] Add workaround for actions/checkout#290 --- .github/actions/windows-installer/action.yml | 3 +++ .github/workflows/release-packages.yml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/actions/windows-installer/action.yml b/.github/actions/windows-installer/action.yml index 051363e56..cd92ee5a5 100644 --- a/.github/actions/windows-installer/action.yml +++ b/.github/actions/windows-installer/action.yml @@ -19,6 +19,9 @@ runs: git autoconf automake-wrapper + - name: Fix missing tags + run: | + git fetch --tags --force - name: Generate configure script shell: msys2 {0} run: bash autogen.sh diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index d832aae7f..bd87ba49d 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -23,6 +23,9 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Fix missing tags + run: | + git fetch --tags --force - uses: msys2/setup-msys2@v2 with: msystem: ${{matrix.sys}} @@ -34,7 +37,7 @@ jobs: - name: Debugging for tags run: | git tag - git describe --long + git describe --tags --long - name: Build MSYS2 ${{matrix.sys}} package run: | cd contrib/msys2