Skip to content

hotfix(ci): skip DataDog upload on forks #7802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
hotfix(ci): skip DataDog upload on forks
  • Loading branch information
ammario committed Jun 2, 2023
commit 3f96041a4f15e0387dd7635c8cb80ee6dab14aa5
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