Skip to content

Commit 154665b

Browse files
committed
build: skip coverage workflow on push for forks
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent daf2cc8 commit 154665b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/run_tests_coverage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,10 @@ jobs:
8686
# Define a display name:
8787
name: 'Calculate test coverage for packages'
8888

89-
# Only run this job if a pull request does not have a "ci: Skip" label:
90-
if: "${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip') }}"
89+
# Only run this job if a pull request does not have a "ci: Skip" label and skip push events on forks:
90+
if: |
91+
(github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'ci: Skip')) &&
92+
(github.event_name != 'push' || github.repository == 'stdlib-js/stdlib')
9193
9294
# Define the type of virtual host machine:
9395
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)