mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #467] Doesn't correctly handle worker-level Powershell script runs #325
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#325
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JustinGrote on GitHub (Jan 11, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/467
Issue
Powershell 7 scripts do not run in native workers via
run:step, and report a false positive of succeedingSteps to Reproduce
With the following simple config:
and swapping in the official powershell worker (and using -r so the container doesn't disappear):

act -rvP ubuntu-latest=mcr.microsoft.com/powershell:lts-ubuntu-18.04The result says success:
However upon inspecting the image via attaching a shell to the docker container the "evidence" file was not created:

And running the command manually in the container from shell shows an exec problem

Running the command using the


-fformat works fine however@karolswdev commented on GitHub (Jan 19, 2021):
I confirm that this is not working currently. I encountered this issue with a similar flow.
I use
karolczajkowski/dotnet-ubuntu-dindimage with pre-installed pwsh. Same thing happens whenever I run steps which use theshelltoken.@github-actions[bot] commented on GitHub (Feb 19, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@JustinGrote commented on GitHub (Mar 5, 2021):
@cplee this is still an issue, I forgot to bump it active, can you reopen?
@JustinGrote commented on GitHub (Mar 24, 2021):
After extensive debugging I found the issue, when the command is built, the space splitting in the array does not split it correctly, the powershell command should all be on one line

I'll fix this in the PR, this is also why the -f method worked
.gitignoreto be copied to container #1490