From 902b5303277f81505c269a8cd42c579936730415 Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Wed, 13 Mar 2024 10:40:22 +0100 Subject: [PATCH] Use fetch-depth: 0 --- .github/workflows/hotfix.yml | 1 + fastlane/Fastfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hotfix.yml b/.github/workflows/hotfix.yml index 0f0dbe150b..a49d5ed446 100644 --- a/.github/workflows/hotfix.yml +++ b/.github/workflows/hotfix.yml @@ -29,6 +29,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 0 # Fetch all history and tags in order to extract Asana task URLs from git log - name: Prepare fastlane run: bundle install diff --git a/fastlane/Fastfile b/fastlane/Fastfile index bd5b7cc7cf..1cab96f1ed 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -543,7 +543,8 @@ release in progress and you're making a follow-up internal release that includes ).empty? # Create the branch and push - Action.sh('git', 'fetch', '--tags') + # Action.sh('gh', 'api', '--method', 'POST', '/repos/duckduckgo/macos-browser/git/refs', '-f', "ref='refs/heads/#{release_branch}'", -f sha='aa218f56b14c9653891f9e74264a383fa43fefbd' + Action.sh('git', 'fetch', '--tags') unless is_ci Action.sh('git', 'checkout', '-b', release_branch, source_version) Action.sh('git', 'push', '-u', 'origin', release_branch) end