Skip to content

Commit ede62ca

Browse files
committed
build: only run workflows on main repo
--- 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 b256d64 commit ede62ca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/process_metadata.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
# Define a display name:
4242
name: 'Process Metadata'
4343

44+
# Only run this job if the repository is not a fork:
45+
if: github.repository == 'stdlib-js/stdlib'
46+
4447
# Define the type of virtual host machine:
4548
runs-on: ubuntu-latest
4649

.github/workflows/standalone_push_changes.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
# Define a display name:
4646
name: 'Push changes'
4747

48+
# Only run this job if the repository is not a fork:
49+
if: github.repository == 'stdlib-js/stdlib'
50+
4851
# Define the type of virtual host machine:
4952
runs-on: ubuntu-latest
5053

@@ -120,8 +123,8 @@ jobs:
120123
# Indicate that this job depends on the prior job finishing:
121124
needs: push
122125

123-
# Run this job regardless of the outcome of the prior job:
124-
if: always()
126+
# Run this job regardless of the outcome of the prior job, but only if the repository is not a fork:
127+
if: always() && github.repository == 'stdlib-js/stdlib'
125128

126129
# Set defaults:
127130
defaults:

0 commit comments

Comments
 (0)