Skip to content

Commit

Permalink
fix(setup-elixir): cache key (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen authored Sep 24, 2024
1 parent 7df92a9 commit 5349da3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup-elixir/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ runs:
with:
fetch-depth: ${{ inputs.fetch-depth }}
submodules: ${{ inputs.submodules }}
- uses: erlef/setup-beam@v1
- id: setup-beam
uses: erlef/setup-beam@v1
with:
version-file: ${{ inputs.version-file }}
version-type: strict
Expand All @@ -45,9 +46,9 @@ runs:
uses: actions/cache@v4
with:
path: ${{ inputs.cache-path }}
key: mix-${{ runner.os }}-${{ inputs.otp-version }}-${{ inputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
key: mix-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
mix-${{ runner.os }}-${{ inputs.otp-version }}-${{ inputs.elixir-version }}-
mix-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-
- run: echo "cache-hit=${{ steps.cache.outputs.cache-hit }}" >> $GITHUB_OUTPUT
shell: bash

0 comments on commit 5349da3

Please sign in to comment.