We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56ca496 commit ea8ae1cCopy full SHA for ea8ae1c
.azure-pipelines/templates/macos/macos-publish-jobs.yml
@@ -182,6 +182,10 @@ jobs:
182
183
cd $(Pipeline.Workspace)/homebrew-tap
184
185
+ # Always start from the latest origin/main to avoid rebase conflicts
186
+ git fetch origin main
187
+ git reset --hard origin/main
188
+
189
# Homebrew uses sharded cask layout: Casks/<first-letter>/<name>.rb
190
CASK_DIR="Casks/a"
191
mkdir -p "$CASK_DIR"
@@ -200,7 +204,6 @@ jobs:
200
204
git config user.email "azure-pipeline@microsoft.com"
201
205
git add "$CASK_DIR/azure-cli.rb"
202
206
git commit -m "Update azure-cli to $VERSION" || echo "No changes"
203
- git pull --rebase origin main
207
git push origin HEAD:main
208
209
echo "Homebrew cask updated successfully"
0 commit comments