mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1109] conditional steps incorrectly evaluates conclusion #633
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#633
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 @BrianHung on GitHub (Apr 6, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1109
Expected behavior is that
steps.install.outcome == 'success'evaluates to true, matching the result from the context log.@ChristopherHX commented on GitHub (Apr 20, 2022):
This bug has confused me in my PR https://github.com/nektos/act/pull/1078#issuecomment-1079459355 while writing tests. The problem is that
outcomeis stored internally as an integer and the new expression evaluator of act v0.2.26 didn't handle this case.github.com/nektos/act@a85e89d3fb/pkg/model/step_result.go (L19-L32)I think the expression evaluator should either test for the
TextMarshalerinterface and return a string instead of an integer or refactor the code that such special things no longer needs to be handled.@KnisterPeter commented on GitHub (Apr 21, 2022):
This would be the best I think