From 26611b7793946d66aab219870a68395e358bf5cd Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 9 Feb 2023 21:15:36 -0500 Subject: [PATCH] ci: Run benchmark on every new latest image --- .github/workflows/benchmark.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d405e39d..2eb07f9f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -1,5 +1,9 @@ name: benchmark on: + workflow_run: + workflows: [publish-latest] + branches: [master] + types: [completed] workflow_dispatch: inputs: repository: @@ -19,8 +23,8 @@ jobs: - uses: actions/setup-go@v3 with: go-version: 1.19 - repository: "${{ github.event.inputs.repository }}" - ref: "${{ github.event.inputs.ref }}" + repository: ${{ github.event.inputs.repository || "TwiN/gatus" }} + ref: ${{ github.event.inputs.ref || "master" }} - uses: actions/checkout@v3 - name: Benchmark run: go test -bench=. ./storage/store