File tree 2 files changed +15
-6
lines changed 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Benchmark
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
6
+ branches :
7
+ - " master"
5
8
paths :
6
9
- " lib/**"
10
+ - " .github/workflows/benchmark.yml"
7
11
pull_request :
8
12
branches :
9
- - master
10
- paths-ignore :
11
- - " test/scripts/**"
13
+ - " master"
14
+ paths :
15
+ - " lib/**"
16
+ - " .github/workflows/benchmark.yml"
12
17
13
18
jobs :
14
19
benchmark :
Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ permissions:
13
13
14
14
jobs :
15
15
comment-test :
16
+ name : How to test
16
17
permissions :
17
18
pull-requests : write # for marocchino/sticky-pull-request-comment to create or update PR comment
18
19
runs-on : ubuntu-latest
19
- if : ${{github.event_name == 'pull_request_target' }}
20
+ if : ${{github.event_name == 'pull_request_target' && github.event.workflow_run.conclusion=='success' }}
20
21
steps :
21
22
- name : Comment PR - How to test
22
23
uses : marocchino/sticky-pull-request-comment@v2
33
34
```
34
35
35
36
comment-flamegraph :
37
+ name : Flamegraph
36
38
permissions :
37
39
pull-requests : write # for marocchino/sticky-pull-request-comment to create or update PR comment
38
40
actions : read # get artifact
@@ -54,15 +56,17 @@ jobs:
54
56
echo "pr_number=$(cat .tmp-comment-pr_number)" >> "$GITHUB_ENV"
55
57
56
58
- name : combime comment
59
+ if : ${{env.pr_number!=''}}
57
60
run : |
58
- echo "## flamegraph " > ${{env.comment_result}}
61
+ echo "## Flamegraph " > ${{env.comment_result}}
59
62
echo "" >> ${{env.comment_result}}
60
63
cat .tmp-comment-flamegraph-*.md >> ${{env.comment_result}}
61
64
62
65
- name : Comment PR - flamegraph
66
+ if : ${{env.pr_number!=''}}
63
67
uses : marocchino/sticky-pull-request-comment@v2
64
68
with :
65
69
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
66
70
number : ${{env.pr_number}}
67
- header : flamegraph
71
+ header : Flamegraph
68
72
path : ${{env.comment_result}}
You can’t perform that action at this time.
0 commit comments