You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: speed up workflow reruns, remove run_number from build cache key (#14448)
Use `${{ github.sha }}` instead of `${{ github.sha }}-${{
github.run_number }}` for the build cache key, which will speed up
re-runs of failed workflows.
This should avoid having to rebuild at all on a re-run, saving ~5mins.
Copy file name to clipboardExpand all lines: .github/workflows/main.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ jobs:
91
91
uses: actions/cache@v4
92
92
with:
93
93
path: ./*
94
-
key: ${{ github.sha }}-${{ github.run_number }}
94
+
key: ${{ github.sha }}
95
95
96
96
tests-unit:
97
97
runs-on: ubuntu-24.04
@@ -110,7 +110,7 @@ jobs:
110
110
uses: actions/cache@v4
111
111
with:
112
112
path: ./*
113
-
key: ${{ github.sha }}-${{ github.run_number }}
113
+
key: ${{ github.sha }}
114
114
115
115
- name: Unit Tests
116
116
run: pnpm test:unit
@@ -134,7 +134,7 @@ jobs:
134
134
uses: actions/cache@v4
135
135
with:
136
136
path: ./*
137
-
key: ${{ github.sha }}-${{ github.run_number }}
137
+
key: ${{ github.sha }}
138
138
139
139
- name: Types Tests
140
140
run: pnpm test:types --target '>=5.7'
@@ -205,7 +205,7 @@ jobs:
205
205
uses: actions/cache@v4
206
206
with:
207
207
path: ./*
208
-
key: ${{ github.sha }}-${{ github.run_number }}
208
+
key: ${{ github.sha }}
209
209
210
210
- name: Start LocalStack
211
211
run: pnpm docker:start
@@ -342,7 +342,7 @@ jobs:
342
342
uses: actions/cache@v4
343
343
with:
344
344
path: ./*
345
-
key: ${{ github.sha }}-${{ github.run_number }}
345
+
key: ${{ github.sha }}
346
346
347
347
- name: Start LocalStack
348
348
run: pnpm docker:start
@@ -486,7 +486,7 @@ jobs:
486
486
uses: actions/cache@v4
487
487
with:
488
488
path: ./*
489
-
key: ${{ github.sha }}-${{ github.run_number }}
489
+
key: ${{ github.sha }}
490
490
491
491
- name: Start LocalStack
492
492
run: pnpm docker:start
@@ -586,7 +586,7 @@ jobs:
586
586
uses: actions/cache@v4
587
587
with:
588
588
path: ./*
589
-
key: ${{ github.sha }}-${{ github.run_number }}
589
+
key: ${{ github.sha }}
590
590
591
591
- name: Start PostgreSQL
592
592
uses: CasperWA/postgresql-action@v1.2
@@ -683,7 +683,7 @@ jobs:
683
683
uses: actions/cache@v4
684
684
with:
685
685
path: ./*
686
-
key: ${{ github.sha }}-${{ github.run_number }}
686
+
key: ${{ github.sha }}
687
687
688
688
- name: Generate Payload Types
689
689
run: pnpm dev:generate-types fields
@@ -742,7 +742,7 @@ jobs:
742
742
uses: actions/cache@v4
743
743
with:
744
744
path: ./*
745
-
key: ${{ github.sha }}-${{ github.run_number }}
745
+
key: ${{ github.sha }}
746
746
747
747
- run: pnpm run build:bundle-for-analysis # Esbuild packages that haven't already been built in the build step for the purpose of analyzing bundle size
0 commit comments