mirror of
https://github.com/stablyai/orca.git
synced 2026-11-14 01:47:24 +00:00
Revert "ci: full checks on main pushes, changed-file lint on PRs, Slack alert when main breaks (#37282)" (#37341)
Main went red right away on the full main-push runs. Reverting to the previous PR-only checks.
This reverts commit a7ae68fc6f.
This commit is contained in:
@@ -18,10 +18,7 @@ export function verifyRequiredPrContext(parseYaml) {
|
||||
}
|
||||
const gate = providers[0].job
|
||||
const condition = gate.if?.replace(/^\$\{\{\s*|\s*\}\}$/g, '').trim()
|
||||
if (
|
||||
condition !==
|
||||
"!cancelled() && (github.event_name != 'pull_request' || github.event.pull_request.draft != true)"
|
||||
) {
|
||||
if (condition !== '!cancelled() && github.event.pull_request.draft != true') {
|
||||
throw new Error('Required PR aggregate must run unless cancelled or the PR is a draft.')
|
||||
}
|
||||
if (gate['continue-on-error'] || gate.steps?.some((step) => step['continue-on-error'])) {
|
||||
|
||||
Reference in New Issue
Block a user