File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ steps:
3333# platform: '$(buildPlatform)'
3434# configuration: '$(buildConfiguration)'
3535
36- # GitHubRelease
37- # - task: PowerShell@2
38- # displayName: 'Get latest SHA commmit from repo'
39- # inputs:
40- # targetType: 'inline'
41- # script: |
42- # $commits = Invoke-RestMethod -Method GET -Uri "https://api.github.com/repos/Account/repo/commits"
43- # $sha = $commits[0].sha
44- # Write-Host "##vso[task.setvariable variable=sha;]$sha"
36+ # GitHubRelease
37+ - task : PowerShell@2
38+ displayName : ' Get latest SHA commmit from repo'
39+ inputs :
40+ targetType : ' inline'
41+ script : |
42+ $commits = Invoke-RestMethod -Method GET -Uri "https://api.github.com/repos/Account/repo/commits"
43+ $sha = $commits[0].sha
44+ Write-Host "##vso[task.setvariable variable=sha;]$sha"
4545
4646# - task: GitHubRelease@1
4747# inputs:
You can’t perform that action at this time.
0 commit comments