Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbreak non-PR CI builds #6737

Merged
merged 1 commit into from
Aug 5, 2021
Merged

Unbreak non-PR CI builds #6737

merged 1 commit into from
Aug 5, 2021

Conversation

ladipro
Copy link
Member

@ladipro ladipro commented Aug 5, 2021

Context

#6381 added a check to run as part of CI builds which expects the SYSTEM_PULLREQUEST_TARGETBRANCH environment variable to exist. As a result, regular main builds which are not triggered by PRs are broken.

Changes Made

Added the new code behind an if so it runs only if the PR target branch is defined. Effectively this makes the check run only in PRs, which is by design.

Testing

Will watch the next main build.

@ladipro ladipro requested a review from rokonec August 5, 2021 13:00
@rokonec rokonec merged commit 4f8d57b into dotnet:main Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants