Skip to content
Snippets Groups Projects
Commit d2240bf7 authored by Sergey Kaplun's avatar Sergey Kaplun Committed by Sergey Kaplun
Browse files

ci: avoid sending perf stat to Influx from forks

This patch is the follow-up for the commit
49946a72 ("ci: send perf statistics to InfluxDB").
Since secrets are unavailable for fork repositories, the sending step
fails due to a missed InfluxDB URL and token. This patch allows to run
this step only for on push events or PRs from the main repository
itself.

NO_DOC=CI
NO_CHANGELOG=CI
NO_TEST=CI
parent 6d856347
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,11 @@ jobs:
- name: Aggregate benchmark results
run: make -f .test.mk test-perf-aggregate
- name: Send statistics to InfluxDB
# Run on push to the 'master' and release branches or on
# non-fork pull requests (secrets are unavailable in fork
# pull requests).
if: github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
# TODO: For now, use the debug bucket for this PoC.
# --silent -o /dev/null: Prevent dumping any reply part
# in the output in case of an error.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment