mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #565] Issue: If expressions fails in act but works on Github #380
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#380
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 @vegidio on GitHub (Mar 14, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/565
Act version
Expected behaviour
act would run all steps of my workflow.
Actual behaviour
act didn't run and threw the error message "[build/build] ❌ Error in if: expression - build"
Workflow and/or repository
workflow
Steps to reproduce
actactoutputLog
@miigotu commented on GitHub (Mar 23, 2021):
What if you remove the double quotes?
This works for me here at least:
if: success() && steps.prepare.outputs.version == 'master' && github.event_name != 'pull_request'@jsoref commented on GitHub (Apr 4, 2021):
The expression thing at least for me explicitly objects to the
!. Wrapping it in${{ ... }}makes everyone happy. I reported it as #598@vegidio commented on GitHub (Apr 11, 2021):
It doesn't work without the double quotes on Github.
@github-actions[bot] commented on GitHub (May 12, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@miigotu commented on GitHub (May 12, 2021):
@vegidio commented on GitHub (May 19, 2021):
@miigotu This is not the same example that I shared here.
Even if this example that you shared works for you, my point in this issue is to show that a workflow that works on Github with double quotes, doesn't work with act. And since act is supposed to mimic the same behaviour of Github Actions then it's a bug.
@miigotu commented on GitHub (May 19, 2021):
I was replying specifically to that comment, correcting that GitHub does work without the quotes. If you provide inaccurate information, new bugs could be introduced.
@github-actions[bot] commented on GitHub (Jun 19, 2021):
Issue is stale and will be closed in 14 days unless there is new activity