Skip to content

Commit fc7ac94

Browse files
authored
Update test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml
1 parent 37cc233 commit fc7ac94

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: MLPerf inference bert (deepsparse, tf, onnxruntime, pytorch)
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches: [ "main", "dev" ]
66
paths:
77
- '.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml'
@@ -47,17 +47,21 @@ jobs:
4747
if: matrix.os != 'windows-latest'
4848
run: |
4949
mlcr --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }}_x86 --model=bert-99 --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --precision=${{ matrix.precision }} --target_qps=1 -v --quiet
50+
- name: Retrieve secrets from Keeper
51+
id: ksecrets
52+
uses: Keeper-Security/ksm-action@master
53+
with:
54+
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
55+
secrets: |-
56+
ubwkjh-Ii8UJDpG2EoU6GQ/field/Access Token > env:PAT
5057
- name: Push Results
51-
if: github.repository_owner == 'gateoverflow'
5258
env:
53-
USER: "GitHub Action"
54-
EMAIL: "admin@gateoverflow.com"
55-
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ env.PAT }}
5660
run: |
57-
git config --global user.name "${{ env.USER }}"
58-
git config --global user.email "${{ env.EMAIL }}"
61+
git config --global user.name "mlcommons-bot"
62+
git config --global user.email "mlcommons-bot@users.noreply.github.com"
5963
git config --global credential.https://github.com.helper ""
6064
git config --global credential.https://github.com.helper "!gh auth git-credential"
6165
git config --global credential.https://gist.github.com.helper ""
6266
git config --global credential.https://gist.github.com.helper "!gh auth git-credential"
63-
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_test_submissions_v5.0 --repo_branch=dev --commit_message="Results from Bert GH action on ${{ matrix.os }}" --quiet
67+
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)