Skip to content

Commit

Permalink
no build on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
tdi committed Dec 14, 2019
1 parent 226524a commit 6e4fc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ steps:
go build -ldflags "-X main.version=${APP_VERSION}" -o $(Build.ArtifactStagingDirectory)/azure-tag-manager-${GOOS}-${GOARCH} cmd/cli/main.go
ls -la $(Build.ArtifactStagingDirectory)
displayName: 'Build'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'), not(eq(variables['Build.Reason'], 'PullRequest'))
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'), not(eq(variables['Build.Reason'], 'PullRequest')))



- task: GitHubRelease@0
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'), not(eq(variables['Build.Reason'], 'PullRequest'))
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release'), not(eq(variables['Build.Reason'], 'PullRequest')))
displayName: ‘Create GitHub Release’
inputs:
action: 'create'
Expand Down

0 comments on commit 6e4fc46

Please sign in to comment.