Skip to content

Commit c4e50e5

Browse files
cpoDesignbmarshalsea
authored andcommitted
Update azure-pipelines.yml for Azure Pipelines
1 parent 57f7ad2 commit c4e50e5

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

azure-pipelines.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)