Amadevus / pwsh-script

GitHub Action to run PowerShell scripts in a rich, prepared scope - inspired by actions/github-script.
MIT License
47 stars 8 forks source link

Can I execute a script file and specify a working directory? #7

Closed yihango closed 3 years ago

yihango commented 3 years ago

Similar to Azure DevOps:

image

amis92 commented 3 years ago

Hi, I mean it's not much (any?) different than just doing:

uses: Amadevus/pwsh-script@v2
with:
  script: Set-Location ./nupkg; ./pack.ps1

I considered adding a working directory input, but since it's an additional line anyway, it doesn't differ much with just calling Set-Location, unless I'm missing something?

yihango commented 3 years ago

This should solve my problem, but I am now using the official PowerShell core support of GitAction, thanks for your answer! image