Skip to content

Commit 37cc233

Browse files
authored
Update test-mlperf-inference-retinanet.yml
1 parent 947cb0b commit 37cc233

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/test-mlperf-inference-retinanet.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Run MLPerf inference Retinanet
2-
31
name: MLPerf inference retinanet
42

53
on:
6-
pull_request:
4+
pull_request_target:
75
branches: [ "main", "dev" ]
86
paths:
97
- '.github/workflows/test-mlperf-inference-retinanet.yml'
@@ -54,17 +52,21 @@ jobs:
5452
if: matrix.os != 'windows-latest'
5553
run: |
5654
mlcr --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name=gh_${{ matrix.os }}_x86 --model=retinanet --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --quiet -v --target_qps=1
55+
- name: Retrieve secrets from Keeper
56+
id: ksecrets
57+
uses: Keeper-Security/ksm-action@master
58+
with:
59+
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
60+
secrets: |-
61+
ubwkjh-Ii8UJDpG2EoU6GQ/field/Access Token > env:PAT
5762
- name: Push Results
58-
if: github.repository_owner == 'gateoverflow'
5963
env:
60-
USER: "GitHub Action"
61-
EMAIL: "admin@gateoverflow.com"
62-
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}
64+
GITHUB_TOKEN: ${{ env.PAT }}
6365
run: |
64-
git config --global user.name "${{ env.USER }}"
65-
git config --global user.email "${{ env.EMAIL }}"
66+
git config --global user.name "mlcommons-bot"
67+
git config --global user.email "mlcommons-bot@users.noreply.github.com"
6668
git config --global credential.https://github.com.helper ""
6769
git config --global credential.https://github.com.helper "!gh auth git-credential"
6870
git config --global credential.https://gist.github.com.helper ""
6971
git config --global credential.https://gist.github.com.helper "!gh auth git-credential"
70-
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_test_submissions_v5.0 --repo_branch=auto-update --commit_message="Results from Retinanet GH action on ${{ matrix.os }}" --quiet
72+
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_test_submissions_v5.0 --repo_branch=auto-update --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet

0 commit comments

Comments
 (0)