Skip to content

Commit 09d91c5

Browse files
committed
read PR number
1 parent 0c4c7b7 commit 09d91c5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/postbench.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: PostBenchmarks
22
on:
33
workflow_run:
44
workflows: [RunUploadBenchmarks]
5-
# types: [completed]
6-
# branches: [master, benchx]
5+
types: [completed]
6+
branches: [master]
77
jobs:
88
on-success:
99
runs-on: ubuntu-latest
@@ -52,12 +52,14 @@ jobs:
5252
issue_number: issue_number,
5353
body: 'Thank you for the PR!'
5454
});
55+
- name: `Read PR number`
56+
run: echo "{MY_PR_NUMBER}=$(cat .benchmarkci/pr_number)" >> $GITHUB_ENV
5557
- name: 'Comment on PR test 3'
56-
run: gh pr comment "$NUMBER" --body "$BODY"
58+
run: gh pr comment "$MY_PR_NUMBER" --body "$BODY"
5759
env:
5860
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5961
GH_REPO: ${{ github.repository }}
60-
NUMBER: ${{ github.event.pull_request.number }}
62+
# NUMBER: ${{ github.event.pull_request.number }}
6163
BODY: >
6264
This pr comment is testing.
6365
**This should be bold**

0 commit comments

Comments
 (0)