Skip to content

Commit 1480413

Browse files
committed
Update benchmark workflow to run on ubuntu-latest and fix comment parameters
1 parent dd51330 commit 1480413

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/reusable_benchmarks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ jobs:
3434
benchmarks:
3535
name: Benchmarks
3636
# run only on upstream; forks will not have the HW
37-
if: github.repository == 'oneapi-src/unified-memory-framework'
38-
runs-on: ${{ inputs.runner }}
37+
runs-on: ubuntu-latest
3938
permissions:
4039
contents: write
4140
pull-requests: write
@@ -57,16 +56,16 @@ jobs:
5756
with:
5857
script: |
5958
const pr_no = '${{ inputs.pr_no }}';
60-
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
61-
const params = '${{ env.bench_params }}';
59+
const url = ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }};
60+
const params = ${{ env.bench_params }}.replace(/'/g, "");
6261
const body = `Compute Benchmarks run (with params: ${params}):\n${url}`;
6362
6463
github.rest.issues.createComment({
6564
issue_number: pr_no,
6665
owner: context.repo.owner,
6766
repo: context.repo.repo,
6867
body: body
69-
})
68+
});
7069
7170
- name: Checkout UMF
7271
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -195,6 +194,7 @@ jobs:
195194
})
196195
197196
- name: Commit data.json and results directory
197+
if: false
198198
working-directory: results-repo
199199
run: |
200200
git config --global user.name "GitHub Actions Bot"

0 commit comments

Comments
 (0)