From 71a549a5f58d28779c38b65fc3fe842601e093f6 Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Wed, 18 Mar 2026 20:37:11 -0600 Subject: [PATCH 1/2] ci: use shallow checkout for tag-push releases The set-metadata job was doing fetch-depth: 0 with fetch-tags for all trigger types, but tag-push releases only need version.sh validate (no git history needed). Full clone only needed for schedule/dispatch builds that call version.sh generate. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fadf176c44..e6fc81f67e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,8 +55,8 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.ref }} - fetch-depth: 0 - fetch-tags: true + fetch-depth: ${{ github.event_name == 'push' && 1 || 0 }} + fetch-tags: ${{ github.event_name != 'push' }} - id: meta shell: bash From 7f25ea0a607f356433068a2b92c969533d1eb3e9 Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Thu, 19 Mar 2026 05:28:25 -0600 Subject: [PATCH 2/2] fix: keep fetch-tags for tag-push releases version.sh validate calls get_latest_version which needs git tag -l to check the new version doesn't go backwards. Keep fetch-tags: true for all trigger types; only the commit history (fetch-depth) is conditionally shallow. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6fc81f67e..b96230cb1f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,7 +56,7 @@ jobs: with: ref: ${{ github.ref }} fetch-depth: ${{ github.event_name == 'push' && 1 || 0 }} - fetch-tags: ${{ github.event_name != 'push' }} + fetch-tags: true - id: meta shell: bash