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