Unverified Commit 83f402c6 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[16.2.x][cd] Stop fetching all tags when searching parent tag (#94334)

Backports https://github.com/vercel/next.js/pull/94302

16.x still receives bug fixes so we need to maintain the release
workflow. Even if it's just for perf, the less differences, the easier
it is to find causes of divergent behavior.
parent 411c455d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment