mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2517] Poor error for incomplete action step #1161
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#1161
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 @jsoref on GitHub (Nov 4, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2517
Bug report info
Command used with act
Describe issue
GitHub generates this reasonably helpful error:
I'm not at all certain why it thinks
working-directoryis a particularly reasonable suggestion (it really needs to suggestrun+shelloruses, but...)(Along with a very unhelpful technical error.)
Act generates this message:
the word
finallyhere is unhelpful (I believe it's an implementation detail from go or act), but for this action, the correct thing to say is that the step is missing fields (not that the action is missing steps), and preferably which kinds of fields (which the GitHub error more or less does).Link to GitHub repository
https://github.com/check-spelling-sandbox/shiny-octo-couscous
Workflow content
Relevant log output
Additional information
github.com/check-spelling-sandbox/shiny-octo-couscous@1d711e7026/action.yml@ChristopherHX commented on GitHub (Nov 4, 2024):
Thank you for your bug report, I really messed it up and this accidentally passes the schema validation
github.com/nektos/act@9bd99e5d7c/pkg/schema/schema.go (L72)I have no code that checks for required properties of a mapping.
This case is detected, because that is no valid subset of a step
Your case is part of a valid set of properties.
@github-actions[bot] commented on GitHub (May 4, 2025):
Issue is stale and will be closed in 14 days unless there is new activity
@jsoref commented on GitHub (May 4, 2025):
Sigh