Files
jobtrackingapp/.gitea/workflows/maintenance.yml
T
cesnimda 3b055b01f5
CI and Deploy / test (push) Successful in 7m8s
CI and Deploy / deploy (push) Successful in 1m42s
feat(admin): dispatch allowlisted maintenance jobs
2026-09-01 16:53:54 +02:00

43 lines
1.2 KiB
YAML

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