Skip to content

Commit 4a34d2e

Browse files
committed
Do not run scheduled jobs on forks
1 parent 4e30fa1 commit 4a34d2e

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010

1111
coverage:
12+
if: github.repository == 'VUnit/vunit'
1213
runs-on: ubuntu-latest
1314
steps:
1415

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
path: .tox/py313-docs/tmp/docsbuild/
3939

4040
- name: '🚀 Publish site'
41-
if: github.event_name != 'pull_request' && github.ref_name == 'master'
41+
if: github.repository == 'VUnit/vunit' && github.event_name != 'pull_request' && github.ref_name == 'master'
4242
run: >-
4343
GH_DEPKEY='${{ secrets.VUNIT_GITHUB_IO_DEPLOY_KEY }}'
4444
./.github/publish_site.sh

.github/workflows/images.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616

1717

1818
GHDL:
19+
if: github.repository == 'VUnit/vunit' || github.event_name != 'schedule'
1920
strategy:
2021
fail-fast: false
2122
matrix:
@@ -48,6 +49,7 @@ jobs:
4849

4950

5051
NVC:
52+
if: github.repository == 'VUnit/vunit' || github.event_name != 'schedule'
5153
runs-on: ubuntu-latest
5254
steps:
5355

.github/workflows/push.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
#
1919

2020
fmt:
21+
if: github.repository == 'VUnit/vunit' || github.event_name != 'schedule'
2122
runs-on: ubuntu-latest
2223
name: '🐍 black'
2324
steps:
@@ -43,6 +44,7 @@ jobs:
4344
#
4445

4546
lin:
47+
if: github.repository == 'VUnit/vunit' || github.event_name != 'schedule'
4648
runs-on: ubuntu-latest
4749
strategy:
4850
fail-fast: false
@@ -75,6 +77,7 @@ jobs:
7577
#
7678

7779
ghdl:
80+
if: github.repository == 'VUnit/vunit' || github.event_name != 'schedule'
7881
runs-on: ubuntu-latest
7982
strategy:
8083
fail-fast: false
@@ -99,6 +102,7 @@ jobs:
99102
#
100103

101104
nvc:
105+
if: github.repository == 'VUnit/vunit' || github.event_name != 'schedule'
102106
runs-on: ubuntu-latest
103107
strategy:
104108
fail-fast: false
@@ -125,6 +129,7 @@ jobs:
125129
#
126130

127131
win:
132+
if: github.repository == 'VUnit/vunit' || github.event_name != 'schedule'
128133
runs-on: windows-latest
129134
strategy:
130135
fail-fast: false
@@ -146,7 +151,7 @@ jobs:
146151
with:
147152
msystem: mingw64
148153
update: true
149-
install: mingw-w64-x86_64-python-pip
154+
install: mingw-w64-x86_64-python-pip
150155

151156
- name: '🧰 Checkout'
152157
uses: actions/checkout@v4
@@ -177,7 +182,7 @@ jobs:
177182
- ghdl
178183
- nvc
179184
- win
180-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
185+
if: github.repository == 'VUnit/vunit' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
181186
name: '🚀 Deploy'
182187
steps:
183188

0 commit comments

Comments
 (0)