From 230c48b346275c84812f4cec265f2483bc81fff7 Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Thu, 21 Nov 2024 20:47:41 +0000 Subject: [PATCH] Fix build phar job on forks that have no tags --- .github/workflows/release-unsigned-phar.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-unsigned-phar.yml b/.github/workflows/release-unsigned-phar.yml index 8210757d..88cf074b 100644 --- a/.github/workflows/release-unsigned-phar.yml +++ b/.github/workflows/release-unsigned-phar.yml @@ -23,6 +23,8 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + # 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 - name: Build PHAR run: box compile