Skip to content

Commit 8d11fc7

Browse files
authored
Update test-mlperf-inference-mlcommons-cpp-resnet50.yml
1 parent b0a1711 commit 8d11fc7

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,30 @@ jobs:
4848
if: matrix.os != 'windows-latest'
4949
run: |
5050
mlcr --tags=app,mlperf,inference,mlcommons,cpp --submitter="MLCommons" --hw_name=gh_${{ matrix.os }} -v --quiet
51+
- name: Randomly Execute Step
52+
id: random-check
53+
run: |
54+
RANDOM_NUMBER=$((RANDOM % 10))
55+
echo "Random number is $RANDOM_NUMBER"
56+
if [ "$RANDOM_NUMBER" -eq 0 ]; then
57+
echo "run_step=true" >> $GITHUB_ENV
58+
else
59+
echo "run_step=false" >> $GITHUB_ENV
60+
fi
61+
- name: Retrieve secrets from Keeper
62+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
63+
id: ksecrets
64+
uses: Keeper-Security/ksm-action@master
65+
with:
66+
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
67+
secrets: |-
68+
ubwkjh-Ii8UJDpG2EoU6GQ/field/Access Token > env:PAT
5169
- name: Push Results
52-
if: github.repository_owner == 'gateoverflow'
5370
env:
54-
USER: "GitHub Action"
55-
EMAIL: "admin@gateoverflow.com"
56-
GITHUB_TOKEN: ${{ secrets.TEST_RESULTS_GITHUB_TOKEN }}
71+
GITHUB_TOKEN: ${{ env.PAT }}
72+
USER: mlcommons-bot
73+
EMAIL: mlcommons-bot@users.noreply.github.com
74+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
5775
run: |
5876
git config --global user.name "${{ env.USER }}"
5977
git config --global user.email "${{ env.EMAIL }}"

0 commit comments

Comments
 (0)