mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1972] Multiple line variable in .env file #944
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#944
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 @chrowe on GitHub (Aug 16, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1972
Bug report info
Command used with act
Describe issue
The readme says that the
--secret-file"file format is the same as .env format"Looking at https://hexdocs.pm/dotenvy/dotenv-file-format.html the way to handle multi line values is
But when I try that throws an error
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
Looks like someone else was having a similar issue in https://github.com/nektos/act/issues/123#issuecomment-670055823
@ChristopherHX commented on GitHub (Aug 16, 2023):
Looks like your document is not for godotenv, but for another dotenv implementation. I don't even understand what spec it follows, it reads like a mix of bash, yaml, /etc/environment and others.
See https://nektosact.com/beginner/index.html#envsecrets-files-structure for an multiline example that works with it
This reminds me we should add a link to nektosact.com.
I strongly recommend yaml
just use the
.ymlor.yamlextension to use that format (--*-fileoptions)This reminds me I never documented yaml support of act.
@chrowe commented on GitHub (Aug 17, 2023):
Thanks, that worked.
Was also able to make it work with multi-line values with line breaks. https://github.com/bkeepers/dotenv#multi-line-values
Thanks for the link to the User Guide, I didn't see a link to that on the repo page.
@ChristopherHX commented on GitHub (Aug 17, 2023):
This is my PR to actually link the user guide in the readme https://github.com/nektos/act/pull/1973.