From a3b2f0208ee02d6d591447ce5dc72218e331019a 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..becdc59 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 --update-head-ok -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 --update-head-ok -f origin ${{ github.ref }}:${{ github.ref }} - name: Build (Windows) run: docker-compose -f docker-compose.windows.yml up - name: Make Windows Installer