Skip to content

Commit 59660eb

Browse files
committed
fix: release
1 parent b7c1a5e commit 59660eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
chmod +x *.sh
5050
# prevent choco build to calculate version from tag of main repository
5151
unset GITHUB_REF GITHUB_BASE_REF GITHUB_HEAD_REF
52-
# replace remote URL so GitVersion sees 1 remote but can't fetch conflicting refs
53-
git remote set-url origin https://invalid.local/chocolatey/choco.git
52+
# create a local branch so GitVersion doesn't try to fetch remote refs for detached HEAD
53+
git checkout -b release/2.6.0
5454
./build.sh --configuration=ReleaseOfficial
5555
cp docker/choco_wrapper code_drop/temp/_PublishedApps/choco/choco_wrapper
5656
cp -r ./code_drop/temp/_PublishedApps/choco/ /opt/chocolatey

0 commit comments

Comments
 (0)