ci: only publish benchmarks nightly

Allow for workflow_dispatch jobs to run, but don't publish their test
results; this is useful for testing workflows themselves.
This commit is contained in:
Edward Thomson
2024-10-21 10:48:25 +01:00
parent 4f40bd9f09
commit 90e659d0b9

View File

@@ -97,7 +97,7 @@ jobs:
publish:
name: Publish results
needs: [ build ]
if: always() && github.repository == 'libgit2/libgit2'
if: always() && github.repository == 'libgit2/libgit2' && github.event_name == 'schedule'
runs-on: ubuntu-latest
steps:
- name: Check out benchmark repository