Skip to content

Commit e643322

Browse files
committed
Fix: github ref
1 parent 11ed3b8 commit e643322

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/coder.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,11 @@ jobs:
349349
retention-days: 7
350350

351351
- uses: datadog/junit-upload-github-action@v1
352-
if: "!github.event.pull_request.head.repo.fork && (success() || failure())"
352+
if: success() || failure()
353353
with:
354354
api-key: ${{ secrets.DD_API_KEY }}
355355
service: "coder-gotests"
356-
tags: "test_suite:${{ matrix.os }}"
357-
env: "{{ github.ref == 'refs/heads/main' && 'main' || 'pull_request' }}"
356+
tags: "test_suite:${{ matrix.os }},github_ref:${{github.ref}}"
358357
files: ./gotests.xml
359358

360359
- uses: codecov/codecov-action@v3
@@ -426,12 +425,11 @@ jobs:
426425
retention-days: 7
427426

428427
- uses: datadog/junit-upload-github-action@v1
429-
if: "!github.event.pull_request.head.repo.fork && (success() || failure())"
428+
if: success() || failure()
430429
with:
431430
api-key: ${{ secrets.DD_API_KEY }}
432431
service: "coder-gotests"
433-
tags: "test_suite:postgres"
434-
env: "{{ github.ref == 'refs/heads/main' && 'main' || 'pull_request' }}"
432+
tags: "test_suite:${{ matrix.os }},github_ref:${{github.ref}}"
435433
files: ./gotests.xml
436434

437435
- uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)