mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #2427] Issue when running act on a yml file #1118
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#1118
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 @lovisXII on GitHub (Aug 18, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2427
Bug report info
Command used with act
Describe issue
Hello,
When i run the act command in my repository it tells me my yml file is not correct and then exit.
Relevant log output
Additional information
No response
@ChristopherHX commented on GitHub (Aug 19, 2024):
try
act --no-recurse, something like this/home/lovis/Klaw_CORE/.github/workflows/scripts/*should be skipped.symbols.yml is clearly not a workflow file, therefore this is a valid error if that is read as a workflow.
older versions like act release 1. August 2024 of act did forgive you passing a lot of invalid workflow definitions
I absolutly disagree that act reads
.github/workflowsrecursively, which obviously cause your problem and GH doesn't do it.Otherwise I wouldn't put files that are not workflows into that directory.
You could open a PR to not read them recursively, if you want to see that sooner in act.
@ChristopherHX commented on GitHub (Aug 19, 2024):
It's also possible to use
act -W .github/workflows/main.ymlto tell act, only read a single workflow@lovisXII commented on GitHub (Aug 19, 2024):
Indeed it worked, so without that flag act will basically analysis any .yml files ?
@ChristopherHX commented on GitHub (Aug 19, 2024):
I think act will analyze every file under
.github/workflows(default of-W).Even .sh or other files as of now