ci: use unique branch per run for WinGet (triangles-VERSION-RUN#)
Avoid 'fetch first' errors when the same version gets re-distributed (multiple tags or workflow re-runs). Each run uses its own branch in the winget-pkgs fork.
This commit is contained in:
@@ -516,7 +516,7 @@ jobs:
|
||||
git config user.name "Sami Ahmed"
|
||||
git config user.email "SamiAhmed7777@users.noreply.github.com"
|
||||
|
||||
BRANCH="triangles-${VERSION}"
|
||||
BRANCH="triangles-${VERSION}-${{ github.run_number }}"
|
||||
git checkout -b "$BRANCH"
|
||||
|
||||
mkdir -p "$MANIFEST_DIR"
|
||||
|
||||
Reference in New Issue
Block a user