@@ -7,26 +7,46 @@ permissions:
7
7
contents : write
8
8
pull-requests : write
9
9
10
- env :
11
- BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
12
-
13
10
jobs :
14
11
ci :
15
12
name : Report memory usage
16
13
runs-on : ubuntu-latest
17
14
steps :
15
+ # To get the potential changes to CI
18
16
- name : Checkout
19
17
uses : actions/checkout@v3
20
18
with :
21
19
submodules : recursive
20
+
22
21
- name : Generate memory usage report (current branch)
23
22
uses : ./.github/actions/memory-report
24
23
with :
25
24
branch : ${{ github.head_ref }}
26
- - name : Generate memory usage report (main)
27
- uses : ./.github/actions/memory-report
25
+ # TODO: Comment back in
26
+ # - name: Generate memory usage report (main)
27
+ # uses: ./.github/actions/memory-report
28
+ # with:
29
+ # branch: ${{ github.base_ref }}
30
+
31
+ # To get back to the PR branch
32
+ - name : Checkout
33
+ uses : actions/checkout@v3
28
34
with :
29
- branch : ${{ github.base_ref }}
35
+ submodules : recursive
36
+
37
+ - name : Compare
38
+ run :
39
+ python3 parse-reports.py artifacts/baseline-report.txt artifacts/update-report.txt artifacts/report.txt
40
+
41
+ - name : Comment
42
+ uses : gavv/pull-request-artifacts@v2.1.0
43
+ with :
44
+ commit : ${{ github.event.pull_request.head.sha }}
45
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
46
+ artifacts : report.txt
47
+ comment-title : " Memory usage report"
48
+ comment-message : " Here is an overview of how your pull request impacts the memory usage compared to the main branch:"
49
+
30
50
31
51
# - name: Checkout main
32
52
# uses: actions/checkout@v3
52
72
# - name: Combine
53
73
# run:
54
74
# python3 parse-reports.py artifacts/baseline-report.txt artifacts/update-report.txt artifacts/report.txt
55
- # - name: Comment
56
- # uses: gavv/pull-request-artifacts@v2.1.0
57
- # with:
58
- # commit: ${{ github.event.pull_request.head.sha }}
59
- # repo-token: ${{ secrets.GITHUB_TOKEN }}
60
- # artifacts: artifacts/report.txt
61
- # comment-title: "Memory usage report"
62
- # comment-message: "Here is an overview of how your pull request impacts the memory usage compared to the main branch:"
75
+
0 commit comments