Skip to content

Commit 0ffd2ff

Browse files
authored
Make nightly workflows not run on forks of openvdb/fvdb-core (#319)
Nightly workflows were running on my fork, but failing after 24 hours of waiting because my fork can't get runners. This PR adds a check to prevent the nightly workflow from running on a fork even if the fork has actions enabled. --------- Signed-off-by: Mark Harris <[email protected]>
1 parent 7fa025b commit 0ffd2ff

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/cu128-nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
fvdb-build:
19-
if: ${{ !startsWith(github.event.pull_request.title, 'Draft:') }}
19+
if: ${{ github.repository == 'openvdb/fvdb-core' && !startsWith(github.event.pull_request.title, 'Draft:') }}
2020
name: fVDB Build
2121
runs-on:
2222
- self-hosted
@@ -160,6 +160,7 @@ jobs:
160160
echo "Cleanup completed"
161161
162162
fvdb-benchmarks:
163+
if: ${{ github.repository == 'openvdb/fvdb-core' }}
163164
needs: [fvdb-build]
164165
name: fVDB Continuous Benchmarking
165166
runs-on:

.github/workflows/cu130-nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
fvdb-build:
17-
if: ${{ !startsWith(github.event.pull_request.title, 'Draft:') }}
17+
if: ${{ github.repository == 'openvdb/fvdb-core' && !startsWith(github.event.pull_request.title, 'Draft:') }}
1818
name: fVDB Build
1919
runs-on:
2020
- self-hosted
@@ -158,6 +158,7 @@ jobs:
158158
echo "Cleanup completed"
159159
160160
fvdb-benchmarks:
161+
if: ${{ github.repository == 'openvdb/fvdb-core' }}
161162
needs: [fvdb-build]
162163
name: fVDB Continuous Benchmarking
163164
runs-on:

.github/workflows/nightly.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
fvdb-build:
19-
if: ${{ !startsWith(github.event.pull_request.title, 'Draft:') }}
19+
if: ${{ github.repository == 'openvdb/fvdb-core' && !startsWith(github.event.pull_request.title, 'Draft:') }}
2020
name: fVDB Build
2121
runs-on:
2222
- self-hosted
@@ -133,6 +133,7 @@ jobs:
133133
echo "Cleanup completed"
134134
135135
fvdb-benchmarks:
136+
if: ${{ github.repository == 'openvdb/fvdb-core' }}
136137
needs: [fvdb-build]
137138
name: fVDB Continuous Benchmarking
138139
runs-on:

0 commit comments

Comments
 (0)