Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .pipelines/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ extends:
steps:
- task: CmdLine@2
displayName: Checkout HomeBrew Repo
env:
GITHUB_PAT: $(GitHubPAT)
inputs:
script: git clone https://oauth2:%GITHUB_PAT%@github.com/microsoft/homebrew-msstore-cli.git $(Pipeline.Workspace)\homebrew-msstore-cli
script: git clone https://github.com/microsoft/homebrew-msstore-cli.git $(Pipeline.Workspace)\homebrew-msstore-cli
- task: DownloadGitHubRelease@0
displayName: Download GitHub Release
inputs:
Expand All @@ -213,12 +211,15 @@ extends:
workingDirectory: $(Pipeline.Workspace)\homebrew-msstore-cli
- task: CmdLine@2
displayName: Git operations
env:
GITHUB_PAT: $(GitHubPAT)
inputs:
workingDirectory: $(Pipeline.Workspace)\homebrew-msstore-cli
script: |-
if "%GITHUB_PAT%"=="" (echo ##vso[task.logissue type=error;]GITHUB_PAT is empty & exit /b 1)
git config user.email "msstore.cli.dev.bot@microsoft.com"
git config user.name "MSStore CLI Dev Bot"
git add -f Formula\msstore-cli.rb
git checkout -B $(Build.SourceBranchName)
git commit -m "Update formula with new release ($(Build.SourceBranchName))."
git push origin $(Build.SourceBranchName)
git push https://x-access-token:%GITHUB_PAT%@github.com/microsoft/homebrew-msstore-cli.git HEAD:$(Build.SourceBranchName)