Skip to content

Commit a85ba19

Browse files
authored
ci: Fix performance step in CI missing permissions (#9918)
1 parent 06f25ff commit a85ba19

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci-performance.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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
@@ -86,6 +92,11 @@ jobs:
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:

0 commit comments

Comments
 (0)