Skip to content

Commit c2f1029

Browse files
restrict runs of cron Github Actions on forks (#2649)
1 parent e415269 commit c2f1029

File tree

8 files changed

+13
-0
lines changed

8 files changed

+13
-0
lines changed

.github/workflows/citation_file_validator.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
validate:
1515
name: "validate"
1616
runs-on: ubuntu-latest
17+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
1718
steps:
1819
- name: Check out a copy of the repository
1920
uses: actions/checkout@v4

.github/workflows/create-condalock-file.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
create-verify-lock-file:
2020
name: Create and verify conda lock file for latest Python
2121
runs-on: 'ubuntu-latest'
22+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
2223
steps:
2324
- uses: actions/checkout@v4
2425
with:

.github/workflows/install-from-conda.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ defaults:
3737
jobs:
3838
linux:
3939
runs-on: "ubuntu-latest"
40+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
4041
strategy:
4142
matrix:
4243
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -72,6 +73,7 @@ jobs:
7273

7374
osx:
7475
runs-on: "macos-latest"
76+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
7577
strategy:
7678
matrix:
7779
python-version: ["3.10", "3.11", "3.12", "3.13"]

.github/workflows/install-from-condalock-file.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defaults:
2727
jobs:
2828
linux:
2929
runs-on: "ubuntu-latest"
30+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
3031
strategy:
3132
matrix:
3233
python-version: ["3.10", "3.11", "3.12", "3.13"]

.github/workflows/install-from-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ defaults:
3737
jobs:
3838
linux:
3939
runs-on: "ubuntu-latest"
40+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
4041
strategy:
4142
matrix:
4243
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -74,6 +75,7 @@ jobs:
7475

7576
osx:
7677
runs-on: "macos-latest"
78+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
7779
strategy:
7880
matrix:
7981
python-version: ["3.10", "3.11", "3.12", "3.13"]

.github/workflows/install-from-source.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ defaults:
3535
jobs:
3636
linux:
3737
runs-on: "ubuntu-latest"
38+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
3839
strategy:
3940
matrix:
4041
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -71,6 +72,7 @@ jobs:
7172

7273
osx:
7374
runs-on: "macos-latest"
75+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
7476
strategy:
7577
matrix:
7678
python-version: ["3.10", "3.11", "3.12", "3.13"]

.github/workflows/run-tests-monitor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ defaults:
2020
jobs:
2121
linux:
2222
runs-on: "ubuntu-latest"
23+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
2324
strategy:
2425
matrix:
2526
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -52,6 +53,7 @@ jobs:
5253

5354
osx:
5455
runs-on: "macos-latest"
56+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
5557
strategy:
5658
matrix:
5759
python-version: ["3.10", "3.11", "3.12", "3.13"]

.github/workflows/run-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ defaults:
3737
jobs:
3838
linux:
3939
runs-on: "ubuntu-latest"
40+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
4041
strategy:
4142
matrix:
4243
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -72,6 +73,7 @@ jobs:
7273

7374
osx:
7475
runs-on: "macos-latest"
76+
if: github.repository == 'ESMValGroup/ESMValCore' # avoid GAs in forks
7577
strategy:
7678
matrix:
7779
python-version: ["3.10", "3.11", "3.12", "3.13"]

0 commit comments

Comments
 (0)