From 4898357efd3cccc9ba0eaa0cb4c3f66aade0de84 Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Tue, 2 Jun 2026 08:54:54 +0200 Subject: [PATCH] [cd] Stop fetching all tags when searching parent tag --- .github/workflows/trigger_release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger_release.yml b/.github/workflows/trigger_release.yml index ffeb6fbcc848..4594391711aa 100644 --- a/.github/workflows/trigger_release.yml +++ b/.github/workflows/trigger_release.yml @@ -71,7 +71,8 @@ jobs: GH_TOKEN: ${{ steps.release-app-token.outputs.token }} - name: Clone Next.js repository - run: git clone https://github.com/vercel/next.js.git --depth=25 --single-branch --branch ${GITHUB_REF_NAME:-canary} . + # We expect to find the latest tag on this branch in the last 1000 commits. + run: git clone https://github.com/vercel/next.js.git --depth=1000 --single-branch --branch ${GITHUB_REF_NAME:-canary} . - name: Check token run: gh auth status @@ -83,7 +84,6 @@ jobs: - name: Get commit of the latest tag run: | - git fetch --tags --force --deepen=1000 origin latest_tag="$(git describe --tags --abbrev=0)" echo "LATEST_TAG_COMMIT=$(git rev-list -n 1 "$latest_tag")" >> $GITHUB_ENV