Skip to content

Commit fa55295

Browse files
committed
Workflow fix
1 parent 5f14fea commit fa55295

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/benchmark-pr-comment.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ permissions:
1212

1313
jobs:
1414
comment-linux:
15+
name: 'linux ${{ matrix.sys.compiler }}-${{ matrix.sys.version }} ${{ matrix.sys.flags }}'
1516
if: >
1617
github.event.workflow_run.event == 'pull_request' &&
1718
github.event.workflow_run.conclusion == 'success'
18-
name: 'linux ${{ matrix.sys.compiler }}-${{ matrix.sys.version }} ${{ matrix.sys.flags }}'
1919
runs-on: ubuntu-latest
2020
strategy:
2121
fail-fast: false
@@ -34,7 +34,6 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v4
3636
with:
37-
repository: ${{ github.repository }}
3837
ref: ${{ github.event.repository.default_branch }}
3938

4039
- name: Fetch gh-pages for baseline comparison
@@ -47,8 +46,10 @@ jobs:
4746
run-id: ${{ github.event.workflow_run.id }}
4847
github-token: ${{ secrets.GITHUB_TOKEN }}
4948

50-
- name: Compare benchmark results
49+
- name: Compare & comment
5150
uses: benchmark-action/github-action-benchmark@v1
51+
env:
52+
GITHUB_SHA: ${{ github.event.workflow_run.head_sha }}
5253
with:
5354
tool: googlecpp
5455
output-file-path: benchmark-result.json
@@ -62,10 +63,10 @@ jobs:
6263
comment-always: true
6364

6465
comment-macos:
66+
name: 'macos-${{ matrix.os }}'
6567
if: >
6668
github.event.workflow_run.event == 'pull_request' &&
6769
github.event.workflow_run.conclusion == 'success'
68-
name: 'macos-${{ matrix.os }}'
6970
runs-on: ubuntu-latest
7071
strategy:
7172
fail-fast: false
@@ -75,7 +76,6 @@ jobs:
7576
steps:
7677
- uses: actions/checkout@v4
7778
with:
78-
repository: ${{ github.repository }}
7979
ref: ${{ github.event.repository.default_branch }}
8080

8181
- name: Fetch gh-pages for baseline comparison
@@ -88,8 +88,10 @@ jobs:
8888
run-id: ${{ github.event.workflow_run.id }}
8989
github-token: ${{ secrets.GITHUB_TOKEN }}
9090

91-
- name: Compare benchmark results
91+
- name: Compare & comment
9292
uses: benchmark-action/github-action-benchmark@v1
93+
env:
94+
GITHUB_SHA: ${{ github.event.workflow_run.head_sha }}
9395
with:
9496
tool: googlecpp
9597
output-file-path: benchmark-result.json

0 commit comments

Comments
 (0)