-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞 shell error when using multi-line yaml #117
Comments
Try adding a |
Unfortunately that does not work because part of the issue with using a multiline value for the
For example, this: args: |
--env=${{ inputs.environment}} \
--dir=. \
pipeline Is clipped to an A workaround is to use a block chomping indicator and no backslashes. For example the following will work:
I think an ideal expected behaviour for the |
What is the issue?
Given the following config:
https://github.com/lukemarsden/test-dagger-actions/blob/c0e90ddf436947e4c6639fd95e2c491095f87ff5/.github/workflows/docker-publish.yml
In particular,
When using the multi-line string
args: |
, I suppose the string ends up including the trailing newline at the end, which results in the following error: https://github.com/lukemarsden/test-dagger-actions/actions/runs/8630455004/job/23656748756In particular:
Switching to single line style, like:
fixes the issue, but of course is less readable
Dagger version
dagger v0.11.0 (registry.dagger.io/engine) darwin/arm64
Steps to reproduce
Run the above config
Log output
See above
The text was updated successfully, but these errors were encountered: