Skip to content

Commit 56461ec

Browse files
committed
Fix bug with caching
1 parent 47d8861 commit 56461ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,11 @@ runs:
151151
--results-dir "./llvm-ci-perf-results/results/"
152152
153153
- name: Cache changes to benchmark folder for archival purposes
154+
if: always()
154155
shell: bash
155156
run: |
156157
cd "./llvm-ci-perf-results"
158+
git add .
157159
for diff in $(git diff HEAD --name-only); do
158160
mkdir -p "../cached_changes/$(dirname $diff)"
159161
cp "$diff" "../cached_changes/$diff"
@@ -167,7 +169,6 @@ runs:
167169
git config user.email "[email protected]"
168170
results_branch="unify-ci"
169171
170-
git add .
171172
if git diff --quiet && git diff --cached --quiet; then
172173
echo "No new results added, skipping push."
173174
exit 0

0 commit comments

Comments
 (0)