I'd like to create a GitHub action that sets up an environment in Windows, running a few Powershell commands. Despite this can be done easily as a step, there does not seem to be a way to create a complete GitHub action for that. If I use this:
name: 'Rakudo Star fix for windows'
description: 'Updates zef for RakudoStar'
author: 'JJ'
runs:
using: 'node12'
main: 'upgrade.ps1'
There does not seem a way to run anything other than a JS script, or even to declare the environment. I understand that's left for later, during the job steps, but anyway it looks like a hack. Is there anything I'm missing here?
mainis expected to beJavaScriptbecause you say it should be executed viaNode, right? So in order to be able to use a Powershell script there you'd need to say so in theusingfield. So,using: 'pshell.exe'or something akin to that.usingfield is the application to use to execute the code specified inmain. But Github Actions only support usingnode12anddocker. As seen from this GHActions I just ran for example's sake. github.com/kaypeter87/GitHubActions-PSTest/commit/…