mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #295] 'needs' is not defined #206
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#206
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 @kochetkovIT on GitHub (Jun 25, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/295
Error
ERRO[0002] Unable to interpolate string 'echo ${{ needs.pre.output1 }}' - [ReferenceError: 'needs' is not defined]when try to following workflow:This syntax is working in workflow ran by Github Actions, as we do use it in our project's CI.
@snipebin commented on GitHub (Jun 30, 2020):
+1
@Nilegfx commented on GitHub (Aug 8, 2020):
any workaround for this?
@davidwestberry commented on GitHub (Aug 26, 2020):
This feature would be really helpful
@github-actions[bot] commented on GitHub (Oct 26, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@github-actions[bot] commented on GitHub (Jan 16, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@matiasalbarello commented on GitHub (Jan 19, 2021):
+1
@njimenezotto commented on GitHub (Jan 27, 2021):
+1
@seru1us commented on GitHub (Feb 9, 2021):
+1
@anthonykawa commented on GitHub (Feb 18, 2021):
+1
@ch1seL commented on GitHub (Mar 7, 2021):
+1
@abelcha commented on GitHub (Mar 15, 2021):
+1
@almahmoud commented on GitHub (Mar 23, 2021):
+1
@nikultimo commented on GitHub (Mar 31, 2021):
+1
@gcoban commented on GitHub (Apr 11, 2021):
Community needs "needs" :)
@gakonst commented on GitHub (Apr 14, 2021):
+1
@Joshuapwilley commented on GitHub (Apr 16, 2021):
This is a huge blocker for us. The "needs" parameter enables proper, efficient parallel jobs to be run that have a common set of steps that need to be run for all of them.
We have a number of applications that build for multiple environments but share several common steps. Without being able to use the "needs" option, we have to resort to duplicating steps and waiting on things to run serially which is FAR less than ideal.
@agentschmitt commented on GitHub (Apr 19, 2021):
We are also using the needs parameter in many workflows, but this breaks usage of act and we cant test locally anymore.
Adding support for this would be really nice.
@hcguersoy-oc commented on GitHub (Jul 2, 2021):
Unfortunately here the same: needing
needsbut it blocks simply using act for our development process.@adamthedog commented on GitHub (Jul 2, 2021):
@hcguersoy-oc
Just wanted to let you know if you didn't notice; the fix was merged yesterday! :) (see: #629 as per
mergifyupdate)@jacksoncougar commented on GitHub (Jul 16, 2021):
When I run this example https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-8
Then I am getting this error in the latest
@masterversion when I run act.Is this a known limitation?
@craigtubb57 commented on GitHub (Jul 16, 2021):
I am seeing the same. It seems to only work with the first step of each job.
@Steph0 commented on GitHub (Jul 22, 2021):
Hope the next release is soon with this. Have a hard time convincing my team to think ACT first because of that :)
Thanks for the work on act tought, i love it
@karisalonen commented on GitHub (Aug 3, 2021):
+1
@cplee commented on GitHub (Aug 3, 2021):
@Steph0 - just released https://github.com/nektos/act/releases/tag/v0.2.24
@Steph0 commented on GitHub (Aug 6, 2021):
Love it thanks !
@dirablue commented on GitHub (Sep 7, 2021):
@cplee
hi, is there any update on this.. ?
@catthehacker commented on GitHub (Sep 7, 2021):
No
@littleamigo commented on GitHub (Nov 19, 2021):
I have tried your test workflow from https://github.com/nektos/act/pull/629 > pkg/model/workflow_test.go and it works :)
Then I inserted a single step 'doSomething' before the step with the output assignments and it failed, i.e. all output variables are empty :(
Can this bug be fixed soon?
@nomadme commented on GitHub (Jan 4, 2022):
Same problem, still getting empty output variables from step.
act version 0.2.25@ZauberNerd commented on GitHub (Feb 1, 2022):
As far as I can see, all the example workflows posted here work fine with
0.2.25.@littleamigo that sounds like: https://github.com/nektos/act/issues/758 which has been fixed in
0.2.25(see the release notes: https://github.com/nektos/act/releases/tag/v0.2.25 and note commitff8b1df).@Bouncner commented on GitHub (Feb 21, 2022):
Still facing this issue with
[TypeError: Cannot access member 'outputs' of undefined]and version 0.2.25. On GitHub, the workflow runs just fine.@ZauberNerd commented on GitHub (Feb 22, 2022):
@Bouncner please provide us with a minimal reproducible workflow.
@Bouncner commented on GitHub (Feb 22, 2022):
I tried, but I am not able to reproduce it without the large setup. Interestingly, it happens in the step after the step that sets the output.
id: core_client_countssets the outputs and then act crashes with:This is during the compilation, which is the step after the output setting.
github.com/hyrise/encoding_selection@9c5d3082ef/.github/workflows/haupt.yml (L69)@ZauberNerd commented on GitHub (Feb 23, 2022):
@Bouncner this seems to be an aftereffect of a previous step failing. You can see in your output above that the
Build release server and pluginsstep failed - fix this and the outputs should work.You're also correct, that here the behaviour of act differs from GitHub Actions, but once you fix the above error it should work.
Here's an example workflow that illustrates the problem:
@Bouncner commented on GitHub (Feb 23, 2022):
Argh, been blind. I reused the setup and didn't realize that this caused the compilation error. Sorry.
If I had a which, an more telling error message would be awesome.