Skip to content

Commit 837c138

Browse files
authored
Update update-results.yml
1 parent 338bab4 commit 837c138

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/update-results.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ name: MLPerf inference results updater
33

44
on:
55
push:
6-
branches: [ "main", "v5.0" ]
6+
branches: [ "main" ]
7+
paths:
8+
- "closed/**"
9+
- "open/**"
10+
- "network/**"
711

812
jobs:
913
build:
@@ -16,8 +20,6 @@ jobs:
1620

1721
steps:
1822
- uses: actions/checkout@v4
19-
with:
20-
ssh-key: ${{ secrets.DEPLOY_KEY }}
2123
- name: Set up Python ${{ matrix.python-version }}
2224
uses: actions/setup-python@v3
2325
with:
@@ -29,7 +31,7 @@ jobs:
2931
3032
- name: Run MLPerf Inference Submission Checker and generate results summary
3133
run: |
32-
mlcr run,mlperf,inference,submission-checker --adr.inference-src.tags=_branch.dev --quiet --repo_name=submissions_inference_v6.0 --extra_args=" --skip-extra-files-in-root-check" --submission_dir=./ > >(tee -a out.txt) 2> >(tee -a checker_log.txt >&2)
34+
mlcr run,mlperf,inference,submission-checker --adr.inference-src.tags=_branch.dev --quiet --extra_args=" --skip-extra-files-in-root-check" --submission_dir=./ > >(tee -a out.txt) 2> >(tee -a checker_log.txt >&2)
3335
mlcr convert,from-csv,to-md --csv_file=summary.csv --md_file=README.md
3436
3537
USER="mlcommons-bot"
@@ -44,5 +46,7 @@ jobs:
4446
cat temp | cat - README.md > temp1
4547
head -n 100 temp1 > README.md
4648
git add README.md
49+
ver_num=$(cat dbversion)
50+
let ver_num++
4751
48-
git diff --quiet HEAD -- summary.csv summary.json summary_results.json || (git commit -am "Updated results summary" && git push)
52+
git diff-index --quiet HEAD || (echo "$ver_num" > dbversion && git commit -am "Updated results summary" && git push)

0 commit comments

Comments
 (0)