File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Temporary sync CV P100 state assets
2+
3+ on :
4+ push :
5+ branches :
6+ - agent/canonical-cv-benchmark-source
7+ paths :
8+ - .github/workflows/_temporary-sync-cv-p100-state-assets.yml
9+
10+ permissions :
11+ actions : read
12+ contents : write
13+
14+ jobs :
15+ sync :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ ref : agent/canonical-cv-benchmark-source
21+ fetch-depth : 0
22+ - uses : actions/download-artifact@v4
23+ with :
24+ name : benchmark-generated-assets
25+ path : _generated
26+ run-id : 31154399471
27+ github-token : ${{ secrets.GITHUB_TOKEN }}
28+ - name : Copy exact generated bundle
29+ run : |
30+ set -euo pipefail
31+ cp _generated/frontend/public/data/benchmark_data.json frontend/public/data/benchmark_data.json
32+ cp _generated/frontend/public/data/parse_report.json frontend/public/data/parse_report.json
33+ cp _generated/frontend/public/data/source_inventory.json frontend/public/data/source_inventory.json
34+ rm -rf docs/assets/benchmarks
35+ mkdir -p docs/assets/benchmarks
36+ cp -a _generated/docs/assets/benchmarks/. docs/assets/benchmarks/
37+ - name : Commit generated assets
38+ run : |
39+ set -euo pipefail
40+ git config user.name "github-actions[bot]"
41+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
42+ git add frontend/public/data docs/assets/benchmarks
43+ if git diff --cached --quiet; then
44+ echo "Generated assets already current"
45+ exit 0
46+ fi
47+ git commit -m "benchmark: refresh assets for P100 CV evidence state"
48+ git push origin HEAD:agent/canonical-cv-benchmark-source
You can’t perform that action at this time.
0 commit comments