Skip to content

Commit

Permalink
[ci] Persist/Report only if previous steps succeeded (#16432)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Jun 30, 2019
1 parent d903190 commit 1c9cdf3
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 @@ -38,14 +38,14 @@ steps:
- script: |
node scripts/sizeSnapshot/upload
displayName: 'persist size snapshot'
condition: ne(variables['Build.Reason'], 'PullRequest')
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
env:
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
- script: |
yarn danger ci
displayName: 'run danger on PRs'
condition: eq(variables['Build.Reason'], 'PullRequest')
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
env:
DANGER_GITHUB_API_TOKEN: $(GITHUB_API_TOKEN)

0 comments on commit 1c9cdf3

Please sign in to comment.