Skip to content

Commit 60ce730

Browse files
committed
use if: for setup-perl
1 parent 7715696 commit 60ce730

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

github-actions/ci-dist/action.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -205,27 +205,13 @@ runs:
205205
echo "::endgroup::"
206206
fi
207207
# Target: target-setup-perl
208-
- name: target-setup-perl (actions-setup-perl)
209-
shell: bash
210-
run: |
211-
if ${{ toJSON(
212-
( fromJSON(inputs.target-all)
213-
|| fromJSON(inputs.target-setup-perl)
214-
)
215-
) }}; then
216-
echo "::group::setup-perl (actions-setup-perl)"
217-
git clone \
218-
https://github.com/shogo82148/actions-setup-perl.git \
219-
-b v1 \
220-
.github/actions/actions-setup-perl;
221-
node .github/actions/actions-setup-perl/dist/setup/index.js
222-
echo "::endgroup::"
223-
fi
224-
env:
225-
INPUT_DISTRIBUTION: ${{ inputs.perl-distribution }}
226-
INPUT_PERL-VERSION: ${{ inputs.perl-version }}
227-
INPUT_MULTI-THREAD: ${{ inputs.perl-threaded }}
228-
INPUT_ENABLE-MODULES-CACHE: false
208+
- uses: shogo82148/actions-setup-perl@v1
209+
if: inputs.target-all == 'true' || inputs.target-setup-perl == 'true'
210+
with:
211+
distribution: ${{ inputs.perl-distribution }}
212+
perl-version: ${{ inputs.perl-version }}
213+
multi-thread: ${{ inputs.perl-threaded }}
214+
enable-modules-cache: false
229215
- name: target-setup-perl (perl -V)
230216
shell: bash
231217
run: |

0 commit comments

Comments
 (0)