Browse Source

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]
tags/v0.3.25^2
Ralf Gommers 2 years ago
parent
commit
6b8379d6d9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      .github/workflows/nightly-Homebrew-build.yml

+ 1
- 0
.github/workflows/nightly-Homebrew-build.yml View File

@@ -23,6 +23,7 @@ permissions:

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


Loading…
Cancel
Save