Skip to content

Commit

Permalink
disable github actions output in the primer
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Apr 3, 2024
1 parent 20edc83 commit 83f8020
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/mypy_primer_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
PYRIGHT_DISABLE_GITHUB_ACTIONS_OUTPUT: true

jobs:
mypy_primer:
name: Run mypy_primer on PR
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mypy_primer_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
PYRIGHT_DISABLE_GITHUB_ACTIONS_OUTPUT: true

jobs:
mypy_primer:
name: Run mypy_primer on push
Expand Down
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/pyright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ async function processArgs(): Promise<ExitStatus> {
results.filesInProgram,
results.elapsedTime
);
} else if (process.env['GITHUB_ACTIONS']) {
} else if (process.env['GITHUB_ACTIONS'] && !process.env['PYRIGHT_DISABLE_GITHUB_ACTIONS_OUTPUT']) {
report = reportDiagnosticsAsGithubActionsCommands(
results.diagnostics,
minSeverityLevel,
Expand Down

0 comments on commit 83f8020

Please sign in to comment.