File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ name: PerformanceCheck
2
2
3
3
on :
4
4
workflow_dispatch :
5
- push :
6
- branches :
7
- - main
5
+ # Don't run on every merge to main, because many merges
6
+ # may not even be vm related, but infra, or GH Actions
7
+ # push:
8
+ # branches:
9
+ # - main
8
10
pull_request :
9
11
branches : [main]
10
12
@@ -28,24 +30,34 @@ jobs:
28
30
- uses : actions/checkout@v4
29
31
with :
30
32
fetch-depth : 0
33
+
34
+ - uses : marceloprado/has-changed-path@v1.0.1
35
+ id : did-change
36
+ with :
37
+ paths : packages/
38
+
31
39
- uses : wyvox/action-setup-pnpm@v3
40
+ if : steps.did-change.outputs.changed == 'true'
32
41
with :
33
42
node-version : ' 20.1.0'
34
43
35
44
- name : RUN
45
+ if : steps.did-change.outputs.changed == 'true'
36
46
run : pnpm run benchmark:setup
37
47
38
48
- name : Remove unused artifacts
49
+ if : steps.did-change.outputs.changed == 'true'
39
50
run : rm -rf ./tracerbench-results/traces && rm -rf ./tracerbench-results/traces.zip
40
51
41
52
- name : Upload Tracerbench Artifacts
42
- if : failure() || success()
53
+ if : steps.did-change.outputs.changed == 'true' && ( failure() || success() )
43
54
uses : actions/upload-artifact@v3
44
55
with :
45
56
name : Trace Artifacts
46
57
path : tracerbench-results
47
58
48
59
- name : Write message
60
+ if : steps.did-change.outputs.changed == 'true'
49
61
uses : mshick/add-pr-comment@v2
50
62
with :
51
63
message-path : " tracerbench-results/msg.txt"
You can’t perform that action at this time.
0 commit comments