File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,19 @@ jobs:
7070 cat baseline.json
7171 continue-on-error : true
7272
73+ - name : Save baseline results to temp location
74+ run : |
75+ mkdir -p /tmp/benchmark-results
76+ cp baseline.json /tmp/benchmark-results/ || echo '[]' > /tmp/benchmark-results/baseline.json
77+ cp baseline-output.txt /tmp/benchmark-results/ || echo 'No baseline output' > /tmp/benchmark-results/baseline-output.txt
78+
7379 - name : Upload baseline results
7480 uses : actions/upload-artifact@v4
7581 with :
7682 name : baseline-benchmark
7783 path : |
78- baseline.json
79- baseline-output.txt
84+ /tmp/benchmark-results/ baseline.json
85+ /tmp/benchmark-results/ baseline-output.txt
8086 retention-days : 7
8187
8288 - name : Checkout PR branch
8692 fetch-depth : 1
8793 clean : true
8894
95+ - name : Restore baseline results
96+ run : |
97+ cp /tmp/benchmark-results/baseline.json ./ || echo '[]' > baseline.json
98+ cp /tmp/benchmark-results/baseline-output.txt ./ || echo 'No baseline output' > baseline-output.txt
99+
89100 - name : Setup Node.js (PR)
90101 uses : actions/setup-node@v4
91102 with :
You can’t perform that action at this time.
0 commit comments