mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #441] working-directory syntax use environment value is not working #307
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#307
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 @dkswjdals89 on GitHub (Dec 9, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/441
Hello!
First of all, thank you very much for making this great tool. 😄
I tried to perform github action in the local environment using the tool, but there was a problem.
I want to add the working-directory value to the env and inject it into the required step.
Example
The github action actually works very well, but an error occurs in the act tool.
Error Message:
Is there any other way to use this problem or can it be improved?
Thank you.
@aldegoeij commented on GitHub (Dec 21, 2020):
Ha, took me a while to find this issue, having exactly the same problem. Using working-directory to do prd/acc/dev etc.
@aldegoeij commented on GitHub (Dec 21, 2020):
so actually this is the same issue as https://github.com/nektos/act/issues/181, https://github.com/nektos/act/issues/337, https://github.com/nektos/act/issues/315, https://github.com/nektos/act/issues/435 😄
If I change the workflow yml from:
to:
(so
working-directorytoworking_directory) the error goes away 💪Of course that breaks the workflow from running, but at least it, we now know the interpolation / hyphen errors occurs with the YAML processing, apparently when there is a variable used.
@github-actions[bot] commented on GitHub (Jan 21, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@EronWright commented on GitHub (Jan 29, 2021):
@dkswjdals89 why did you close the issue? Doesn't seem fixed by the mentioned issues.
@xaviergmail commented on GitHub (Apr 7, 2021):
I can confirm that this issue persists and that build matrices are also affected:
Just going on a limb and assuming that something like #511 should fix this
@hs-amartin commented on GitHub (Jun 1, 2021):
This is still broken in the latest release.