Skip to content

Commit 902265b

Browse files
authored
hotfix(ci): skip DataDog upload on forks (#7802)
* hotfix(ci): skip DataDog upload on forks * fixup! hotfix(ci): skip DataDog upload on forks
1 parent 6fdebd8 commit 902265b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/actions/upload-datadog/action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ runs:
99
steps:
1010
- shell: bash
1111
run: |
12+
if [[ ${{ github.event.pull_request.head.repo.full_name != 'coder/coder' }} ]]; then
13+
echo "Not a pull request from the main repo, skipping..."
14+
exit 0
15+
fi
1216
npm install -g @datadog/datadog-ci
1317
datadog-ci junit upload --service coder ./gotests.xml \
1418
--tags os:${{runner.os}} --tags runner_name:${{runner.name}}

0 commit comments

Comments
 (0)