@@ -2,15 +2,6 @@ name: coder
2
2
3
3
on :
4
4
push :
5
- branches :
6
- -main
7
- -" release/*"
8
- tags :
9
- -" *"
10
-
11
- pull_request :
12
- branches :
13
- -" *"
14
5
15
6
workflow_dispatch :
16
7
@@ -178,7 +169,7 @@ jobs:
178
169
-timeout=3m -count=$GOCOUNT -short -failfast
179
170
180
171
-name :Upload DataDog Trace
181
- if :(success() || failure()) && github.actor != 'dependabot[bot]'
172
+ if :(success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
182
173
env :
183
174
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
184
175
DD_DATABASE :fake
@@ -187,7 +178,7 @@ jobs:
187
178
run :go run scripts/datadog-cireport/main.go gotests.xml
188
179
189
180
-uses :codecov/codecov-action@v2
190
- if :github.actor != 'dependabot[bot]'
181
+ if :github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
191
182
with :
192
183
token :${{ secrets.CODECOV_TOKEN }}
193
184
files :./gotests.coverage
@@ -264,25 +255,25 @@ jobs:
264
255
-count=1 -parallel=2 -race -failfast
265
256
266
257
-name :Upload DataDog Trace
267
- if :(success() || failure()) && github.actor != 'dependabot[bot]'
258
+ if :(success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
268
259
env :
269
260
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
270
261
DD_DATABASE :postgresql
271
262
GIT_COMMIT_MESSAGE :${{ github.event.head_commit.message }}
272
263
run :go run scripts/datadog-cireport/main.go gotests.xml
273
264
274
265
-uses :codecov/codecov-action@v2
275
- if :github.actor != 'dependabot[bot]'
266
+ if :github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
276
267
with :
277
268
token :${{ secrets.CODECOV_TOKEN }}
278
269
files :./gotests.coverage
279
270
flags :unittest-go-${{ matrix.os }}
280
- fail_ci_if_error :true
271
+ fail_ci_if_error :${{ github.repository_owner == 'coder' }}
281
272
282
273
deploy :
283
274
name :" deploy"
284
275
runs-on :ubuntu-latest
285
- if :github.ref == 'refs/heads/main'
276
+ if :github.ref == 'refs/heads/main' && github.repository_owner == 'coder'
286
277
permissions :
287
278
contents :read
288
279
id-token :write
@@ -391,15 +382,15 @@ jobs:
391
382
working-directory :site
392
383
393
384
-uses :codecov/codecov-action@v2
394
- if :github.actor != 'dependabot[bot]'
385
+ if :github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
395
386
with :
396
387
token :${{ secrets.CODECOV_TOKEN }}
397
388
files :./site/coverage/lcov.info
398
389
flags :unittest-js
399
390
fail_ci_if_error :true
400
391
401
392
-name :Upload DataDog Trace
402
- if :(success() || failure()) && github.actor != 'dependabot[bot]'
393
+ if :(success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
403
394
env :
404
395
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
405
396
DD_CATEGORY :unit
@@ -483,7 +474,7 @@ jobs:
483
474
working-directory :site
484
475
485
476
-name :Upload DataDog Trace
486
- if :(success() || failure()) && github.actor != 'dependabot[bot]' && runner.os == 'Linux'
477
+ if :(success() || failure()) && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && github.repository_owner == 'coder'
487
478
env :
488
479
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
489
480
DD_CATEGORY :e2e