@@ -184,7 +184,7 @@ jobs:
184
184
-timeout=3m -count=$GOCOUNT -short -failfast
185
185
186
186
-name :Upload DataDog Trace
187
- if :(success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
187
+ if :always() && github.actor != 'dependabot[bot]' &&! github.event.pull_request.head.repo.fork
188
188
env :
189
189
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
190
190
DD_DATABASE :fake
@@ -193,7 +193,7 @@ jobs:
193
193
run :go run scripts/datadog-cireport/main.go gotests.xml
194
194
195
195
-uses :codecov/codecov-action@v3
196
- if :github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
196
+ if :github.actor != 'dependabot[bot]' &&! github.event.pull_request.head.repo.fork
197
197
with :
198
198
token :${{ secrets.CODECOV_TOKEN }}
199
199
files :./gotests.coverage
@@ -271,15 +271,15 @@ jobs:
271
271
-count=1 -parallel=2 -race -failfast
272
272
273
273
-name :Upload DataDog Trace
274
- if :(success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
274
+ if :always() && github.actor != 'dependabot[bot]' &&! github.event.pull_request.head.repo.fork
275
275
env :
276
276
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
277
277
DD_DATABASE :postgresql
278
278
GIT_COMMIT_MESSAGE :${{ github.event.head_commit.message }}
279
279
run :go run scripts/datadog-cireport/main.go gotests.xml
280
280
281
281
-uses :codecov/codecov-action@v3
282
- if :github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
282
+ if :github.actor != 'dependabot[bot]' &&! github.event.pull_request.head.repo.fork
283
283
with :
284
284
token :${{ secrets.CODECOV_TOKEN }}
285
285
files :./gotests.coverage
@@ -290,7 +290,7 @@ jobs:
290
290
name :" deploy"
291
291
runs-on :ubuntu-latest
292
292
timeout-minutes :20
293
- if :github.ref == 'refs/heads/main' && github.repository_owner == 'coder'
293
+ if :github.ref == 'refs/heads/main' &&! github.event.pull_request.head.repo.fork
294
294
permissions :
295
295
contents :read
296
296
id-token :write
@@ -396,15 +396,15 @@ jobs:
396
396
working-directory :site
397
397
398
398
-uses :codecov/codecov-action@v3
399
- if :github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
399
+ if :github.actor != 'dependabot[bot]' &&! github.event.pull_request.head.repo.fork
400
400
with :
401
401
token :${{ secrets.CODECOV_TOKEN }}
402
402
files :./site/coverage/lcov.info
403
403
flags :unittest-js
404
404
fail_ci_if_error :true
405
405
406
406
-name :Upload DataDog Trace
407
- if :(success() || failure()) && github.actor != 'dependabot[bot]' && github.repository_owner == 'coder'
407
+ if :always() && github.actor != 'dependabot[bot]' &&! github.event.pull_request.head.repo.fork
408
408
env :
409
409
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
410
410
DD_CATEGORY :unit
@@ -485,7 +485,7 @@ jobs:
485
485
working-directory :site
486
486
487
487
-name :Upload DataDog Trace
488
- if :(success() || failure()) && github.actor != 'dependabot[bot]' && runner.os == 'Linux' && github.repository_owner == 'coder'
488
+ if :always() && github.actor != 'dependabot[bot]' && runner.os == 'Linux' &&! github.event.pull_request.head.repo.fork
489
489
env :
490
490
DATADOG_API_KEY :${{ secrets.DATADOG_API_KEY }}
491
491
DD_CATEGORY :e2e