Skip to content

Commit 9a64f32

Browse files
Benchmarking.yml: now includes the SHA of the DynamicPPL commit in Benchmark Results comment
1 parent 00296bd commit 9a64f32

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/Benchmarking.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
echo "$benchmark_output" >> $GITHUB_ENV
4545
echo "EOF" >> $GITHUB_ENV
4646
47+
# Get the current commit SHA of DynamicPPL
48+
DPPL_COMMIT_SHA=$(git rev-parse HEAD)
49+
echo "DPPL_COMMIT_SHA=$DPPL_COMMIT_SHA" >> $GITHUB_ENV
50+
51+
COMMIT_URL="https://github.com/${{ github.repository }}/commit/$DPPL_COMMIT_SHA"
52+
echo "DPPL_COMMIT_URL=$COMMIT_URL" >> $GITHUB_ENV
53+
4754
- name: Find Existing Comment
4855
uses: peter-evans/find-comment@v3
4956
id: find_comment
@@ -56,11 +63,12 @@ jobs:
5663
with:
5764
issue-number: ${{ github.event.pull_request.number }}
5865
body: |
59-
## Computer Information
66+
## Benchmark Report for Commit [`${{ env.DPPL_COMMIT_SHA }}`](${{ env.DPPL_COMMIT_URL }})
67+
### Computer Information
6068
```
6169
${{ env.VERSION_INFO }}
6270
```
63-
## Benchmark Report
71+
### Benchmark Results
6472
```
6573
${{ env.BENCHMARK_OUTPUT }}
6674
```

0 commit comments

Comments
 (0)