Skip to content

Commit f40333f

Browse files
authored
Merge pull request #203 from kayjan/cache-logic
Changed: clear cache before saving cache
2 parents e6610ac + 1faea9a commit f40333f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/codecov.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ jobs:
4646
header: Code coverage report
4747
recreate: true
4848
path: code-coverage-results.md
49+
- name: Clear previous benchmark report
50+
if: ${{ github.event_name == 'push' }}
51+
env:
52+
GH_TOKEN: ${{ github.token }}
53+
run: |
54+
gh cache delete ${{ runner.os }}-benchmark --repo kayjan/bigtree
55+
continue-on-error: true
4956
- name: Download previous benchmark report
5057
uses: actions/cache@v4
5158
with:
@@ -61,13 +68,6 @@ jobs:
6168
github-token: ${{ secrets.GITHUB_TOKEN }}
6269
comment-always: true
6370
summary-always: true
64-
- name: Clear previous benchmark report
65-
if: ${{ github.event_name == 'push' }}
66-
env:
67-
GH_TOKEN: ${{ github.token }}
68-
run: |
69-
gh cache delete ${{ runner.os }}-benchmark --repo kayjan/bigtree
70-
continue-on-error: true
7171
- name: Upload coverage to Codecov
7272
if: ${{ github.event_name == 'push' }}
7373
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)