diff --git a/eng/pipelines/report-green.yml b/eng/pipelines/report-green.yml new file mode 100644 index 000000000000..f228fb307edd --- /dev/null +++ b/eng/pipelines/report-green.yml @@ -0,0 +1,35 @@ +# This CI job only runs on PRs where all other jobs are skipped. +# This allows Build Analysis to report green. Without this, no jobs would run, +# causing Build Analysis to hang indefinitely (or until someone commented "ba-g {justification}" on the PR). + +# Only run this on PRs +trigger: none +# Run for all branches, only on paths that no-op other jobs +pr: + autoCancel: true + branches: + include: + - '*' + paths: + include: + - .devcontainer/* + - .github/* + - .vscode/* + - documentation/* + - '**/*.md' + - CODE-OF-CONDUCT.md + - CODEOWNERS + - LICENSE.TXT + - README.md + - SECURITY.md + - THIRD-PARTY-NOTICES.TXT + +# ABG - Always Be Green +jobs: + - job: Report_Green + pool: server + steps: + # This is a documentation-only change. Use no-op task to exit successfully. + - task: Delay@1 + inputs: + delayForMinutes: '0'