Skip to content

Commit

Permalink
Merge pull request #5 from straw-hat-team/fix-elixir-setup
Browse files Browse the repository at this point in the history
fix: elixir setup action
  • Loading branch information
yordis authored Nov 29, 2022
2 parents 1d5dfec + af9c90a commit 83b047c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions elixir/setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ Set up the Elixir project.
with:
elixir-version: '1.11' # optional, fallback to use .tool-versions
otp-version: '22.3' # optional, fallback to use .tool-versions
version-type: 'loose' # optional, fallback to strict
```
5 changes: 5 additions & 0 deletions elixir/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
otp-version:
description: The Erlang version. It fallback to .tool-versions if not specified
required: false
version-type:
description: The versioning type check, either strict or loose
required: false
default: strict

runs:
using: composite
Expand All @@ -32,6 +36,7 @@ runs:
with:
elixir-version: ${{ inputs.elixir-version || steps.tool-versions-elixir.outputs.plugin-version }}
otp-version: ${{ inputs.otp-version || steps.tool-versions-erlang.outputs.plugin-version }}
version-type: ${{ inputs.version-type }}

- name: Restore dependencies cache
uses: actions/cache@v2
Expand Down

0 comments on commit 83b047c

Please sign in to comment.