Skip to content

Commit 6b8379d

Browse files
committed
Run nightly Homebrew cron job only on the main repo, not on forks
I noticed this because GitHub emailed me that it would disable the nightly job because it hadn't changed for 3 months. It currently takes 30-50 minutes daily, and by default runs on all forks of the main repository that have the relevant workflow yaml file. That serves little purpose and wastes quite a bit of energy - so disable the runs outside of the main repo. This will not disable the runs on forks already made in the past that contain this workflow file, but it does save 3 months worth of runs on every new fork that is created. [skip ci]
1 parent 0799b0d commit 6b8379d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/nightly-Homebrew-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ permissions:
2323

2424
jobs:
2525
build-OpenBLAS-with-Homebrew:
26+
if: "github.repository == 'OpenMathLib/OpenBLAS'"
2627
runs-on: macos-latest
2728
env:
2829
DEVELOPER_DIR: /Applications/Xcode_11.4.1.app/Contents/Developer

0 commit comments

Comments
 (0)