Skip to content

Suggestion: perl-version-file input support? #1359

Closed
@stefafafan

Description

@stefafafan

When using this action with a .perl-version file in the repo, I will probably do something like this:

- name: Extract perl version
  run: echo "PERL_VERSION=$(cat .perl-version)" >> $GITHUB_ENV

- name: Setup Perl
  uses: shogo82148/actions-setup-perl@v1
  with:
    perl-version: ${{ env.PERL_VERSION }}

It will be convenient if perl-version-file input was supported, something like:

- name: Setup Perl
  uses: shogo82148/actions-setup-perl@v1
  with:
    perl-version-file: '.perl-version'

What do you think?

Some of the other actions support this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions