From 7fdb5c968c7942feb201514ea27b66e27ac0d89a Mon Sep 17 00:00:00 2001 From: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:39:38 +0000 Subject: [PATCH] Fetch history when cloning, otherwise git commands such as `rev-parse` could fail. (#2314) --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 580eb26245..9c03c40930 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,6 +87,7 @@ jobs: with: ref: ${{ inputs.commit_sha }} token: ${{ secrets.RELEASE_AUTOMATION_BOT_PAT }} + fetch-depth: 0 - name: Get or create release branch id: branch-push shell: bash