From c57190dac2fba91a02d85309e9837bc2497110a6 Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Mon, 18 Aug 2025 09:48:28 +0100 Subject: [PATCH] Force tags fetch to overcome tag confusion --- .github/workflows/build-phar.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-phar.yml b/.github/workflows/build-phar.yml index 5f03f173..93ed821d 100644 --- a/.github/workflows/build-phar.yml +++ b/.github/workflows/build-phar.yml @@ -40,6 +40,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + # Fixes `git describe` picking the wrong tag - see https://github.com/php/pie/issues/307 + - run: git fetch --tags --force # Ensure some kind of previous tag exists, otherwise box fails - run: git describe --tags HEAD || git tag 0.0.0 - uses: ramsey/composer-install@v3