Skip to content

Commit

Permalink
feat: validate configs after post processor runs (#5035)
Browse files Browse the repository at this point in the history
Fixes #5031
  • Loading branch information
SurferJeffAtGoogle committed Apr 21, 2023
1 parent ce2302e commit 9dbfa7f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/owl-bot/cloud-build/update-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ steps:
- 'false'
env:
- 'HOME=/workspace'

# Clone user/branch that created PR:
- name: 'gcr.io/cloud-builders/git'
args:
Expand All @@ -62,6 +63,19 @@ steps:
- 'DEFAULT_BRANCH=$_DEFAULT_BRANCH'
- 'NEW_PULL_REQUEST_TEXT_PATH=/workspace/new_pull_request_text.txt'

# Validate all the OwlBot configs are well formed.
- name: 'gcr.io/cloud-devrel-public-resources/owlbot-cli'
args:
- validate
- '.'
- --ignore-regexp
- '.*/templates/.*'
- --ignore-regexp
- '.*/fixtures/.*'
dir: ${_PR_REPOSITORY}
env:
- 'HOME=/workspace'

# Install credentials *after* running the container.
- name: 'bash'
args:
Expand Down

0 comments on commit 9dbfa7f

Please sign in to comment.