File tree Expand file tree Collapse file tree 2 files changed +46
-7
lines changed
Expand file tree Collapse file tree 2 files changed +46
-7
lines changed Original file line number Diff line number Diff line change 3838
3939 # See: https://github.com/arduino/compile-sketches#readme
4040 - name : Compile sketches
41+ id : compile
4142 uses : arduino/compile-sketches@v1
4243 with :
4344 enable-deltas-report : true
6970 - name: Bounce2
7071 - source-path: .
7172
72- - name : Sketches report size delta
73- # Only run the action when the workflow is triggered by a pull request.
74- if : github.event_name == 'pull_request'
75- continue-on-error : true
76- uses : arduino/report-size-deltas@v1
73+ - name : Upload report size data
74+ uses : actions/upload-artifact@v4
7775 with :
78- github-token : ${{ secrets.GITHUB_TOKEN }}
79- comment-on-pr : true
76+ name : report-size-data
77+ path : ${{ steps.compile.outputs.sizes-json-path }}
Original file line number Diff line number Diff line change 1+ ---
2+ name : Report size deltas
3+
4+ ' on ' :
5+ workflow_run :
6+ workflows : ["Compile Sketches"]
7+ types : [ completed ]
8+
9+ permissions : {}
10+
11+ jobs :
12+ report :
13+ # Only run when the triggering workflow was a pull_request build
14+ if : >
15+ github.event.workflow_run.event == 'pull_request' &&
16+ github.event.workflow_run.conclusion == 'success'
17+
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : read
21+ pull-requests : write
22+
23+ steps :
24+ - name : Download size data
25+ uses : actions/download-artifact@v6
26+ with :
27+ name : report-size-data
28+
29+ - name : Checkout repo
30+ uses : actions/checkout@v6
31+ with :
32+ # If you rely on full history or special refs, include fetch-depth: 0
33+ fetch-depth : 0
34+
35+ - name : Post size deltas
36+ uses : arduino/report-size-deltas@v1
37+ with :
38+ base-sha : ${{ github.event.workflow_run.pull_requests[0].base.sha }}
39+ head-sha : ${{ github.event.workflow_run.pull_requests[0].head.sha }}
40+ sizes-json-path : sizes.json
41+ github-token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments