mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #907] Enhancement: Accept - (single hyphen) as a filename meaning "stdin" #538
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#538
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 @rmunn on GitHub (Nov 27, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/907
Describe feature
By Unix convention, if a tool accepts a filename as input, the filename
-(a single hyphen) will be interpreted as "read from stdin" so that the tool can be used in a pipe. I just tried to do that withact, and it thought that I was trying to read a file named-in the current directory.Use case: I want to be able to create a template of an event file, then do something like this:
But because
actdoesn't use the "-means stdin" convention, I have to create and clean up a temporary file instead:That's easy enough, but it's a little bit of added complexity that wouldn't be needed if I could say
--eventpath -and haveactread the event from stdin.Note that there are other options, like
--secret-fileand--env-file, that could also benefit from the "-means stdin" convention.--eventpathshouldn't be different from other options that take filenames: either all of them should accept-for stdin or none of them should.@github-actions[bot] commented on GitHub (Dec 28, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@rmunn commented on GitHub (Dec 30, 2021):
Further activity to prevent issue being closed.
@github-actions[bot] commented on GitHub (Jan 30, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@rmunn commented on GitHub (Feb 14, 2022):
Please reopen.