-
Notifications
You must be signed in to change notification settings - Fork 147
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
support multiple lines in devcontainer action #4192
base: main
Are you sure you want to change the base?
Conversation
- Updated the action to create a temporary script file for the command execution, ensuring the script name is in lowercase. - Changed the command execution from directly passing the command to using the generated script file. - Cleaned up the temporary script file after execution. - Updated workflow files to use a multiline string for the COMMAND input, improving readability. This change enhances the handling of commands in the DevContainer action and maintains a cleaner environment post-execution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no suggestions.
Unit Test Results0 tests 0 ✅ 0s ⏱️ Results for commit ddf1cc0. ♻️ This comment has been updated with latest results. |
@guy has this been tested end to end? If so can you post a link to the run? Thanks. |
/test |
🤖 pr-bot 🤖 🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/12355453987 (with refid (in response to this comment from @guybartal) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guybartal , @tamirkamara has said he will review this prior to being merged. Please await his review! Thanks.
Support multiple lines in devcontainer action
Before this PR CI workflow developers could only code commands in a single line (inline) to run inside devcontainer,
this becomes challenging to code complex scenarios and maintain it overtime as it is less readable.
This PR introduces a way to embed multiple shell command lines which are more readable and maintainable,
this inline script then materializes into a temp unique shell file which is mounted as
command.sh
file inside the workspace path.