Skip to content

Trying to create Perl actions... and finding some errors #24334

Answered by JJ
JJ asked this question in API and Webhooks
Discussion options

You must be logged in to vote

OK, I got the answer from this documentation, which shows the commands that are used for every shell.

A little aside here: it would probably be very easy to set the same thing that Python has going for Perl, if the source is available, I’d be willing to do a PR. Second aside, the error message above does not mention Python; maybe the list of shells should be dynamic.

Basically, you need to simply add {0} at the end of a preexisting program you want your script to run. That is:

    - run: use v5.14; say "Hi ${{ inputs.who-to-greet}}‼"
      shell: perl {0}

This works as intended, as shown in this run

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant