feat(admin): dispatch allowlisted maintenance jobs
CI and Deploy / test (push) Successful in 7m8s
CI and Deploy / deploy (push) Successful in 1m42s

This commit is contained in:
cesnimda
2026-09-01 16:53:54 +02:00
parent 3ec9ac1dad
commit 3b055b01f5
11 changed files with 328 additions and 8 deletions
+42
View File
@@ -0,0 +1,42 @@
name: Maintenance jobs
on:
workflow_dispatch:
inputs:
job:
description: Allowlisted maintenance job
required: true
type: choice
options:
- cv-benchmark
jobs:
cv-benchmark:
if: inputs.job == 'cv-benchmark'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.317
- name: Run CV corpus benchmark
env:
CV_BENCHMARK_OUTPUT_DIR: ${{ github.workspace }}/tmp/cv-benchmarks/latest
CV_BENCHMARK_APPROVED_DIR: ${{ github.workspace }}/tmp/cv-benchmarks/approved-fixtures
run: |
chmod +x scripts/run-cv-benchmark.sh
scripts/run-cv-benchmark.sh
test -s "$CV_BENCHMARK_OUTPUT_DIR/index.json"
test -s "$CV_BENCHMARK_OUTPUT_DIR/report.md"
- name: Retain benchmark report and fixture candidates
uses: actions/upload-artifact@v4
with:
name: cv-benchmark-${{ github.run_number }}
path: tmp/cv-benchmarks
if-no-files-found: error
retention-days: 30