From 328d7eac93f6b42159cffa95f4a4b265a6429da0 Mon Sep 17 00:00:00 2001 From: Miguel Aranha Baldi Horlle Date: Tue, 30 Apr 2024 23:27:42 -0300 Subject: [PATCH] Fix problem on `git describe` - See: https://github.com/actions/checkout/issues/290 --- .github/workflows/build_and_publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 91480ed..93daf07 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Fix tag reference (workaround for https://github.com/actions/checkout/issues/290) + run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} - name: Build run: docker-compose up - name: Upload Artifact @@ -24,6 +26,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Fix tag reference (workaround for https://github.com/actions/checkout/issues/290) + run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} - name: Build (Windows) run: docker-compose -f docker-compose.windows.yml up - name: Make Windows Installer