Skip to content

Commit

Permalink
hotfix(ci): skip DataDog upload on forks (coder#7802)
Browse files Browse the repository at this point in the history
* hotfix(ci): skip DataDog upload on forks

* fixup! hotfix(ci): skip DataDog upload on forks
  • Loading branch information
ammario authored Jun 2, 2023
1 parent 6fdebd8 commit 902265b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/upload-datadog/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ runs:
steps:
- shell: bash
run: |
if [[ ${{ github.event.pull_request.head.repo.full_name != 'coder/coder' }} ]]; then
echo "Not a pull request from the main repo, skipping..."
exit 0
fi
npm install -g @datadog/datadog-ci
datadog-ci junit upload --service coder ./gotests.xml \
--tags os:${{runner.os}} --tags runner_name:${{runner.name}}
Expand Down

0 comments on commit 902265b

Please sign in to comment.