Skip to content

Commit 9c36ba8

Browse files
Fix CI cache keys for push events (#62)
1 parent a253559 commit 9c36ba8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,17 @@ jobs:
3131
id: mix-deps-cache
3232
with:
3333
path: deps
34-
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-${{ github.event.pull_request.base.sha }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
34+
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
3535
restore-keys: |
36-
v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-${{ github.event.pull_request.base.sha }}-
37-
v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps
36+
v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-deps-
3837
3938
- name: Retrieve Mix Build Cache
4039
uses: actions/cache@v4
4140
id: mix-build-cache
4241
with:
4342
path: _build/test/lib
44-
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-build-${{ github.event.pull_request.base.sha }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
43+
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
4544
restore-keys: |
46-
v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-build-${{ github.event.pull_request.base.sha }}-
4745
v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-build-
4846
4947
- name: Install Mix Dependencies
@@ -75,9 +73,8 @@ jobs:
7573
id: plt-cache
7674
with:
7775
path: plts
78-
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ github.event.pull_request.base.sha }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
76+
key: v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
7977
restore-keys: |
80-
v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-${{ github.event.pull_request.base.sha }}-
8178
v1-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-
8279
8380
- name: Run dialyzer

0 commit comments

Comments
 (0)