Skip to content

Conversation

@andrii-bodnar
Copy link
Member

Capture and expose the output of Crowdin CLI commands when using the command input, allowing users to access it in subsequent workflow steps via steps.<id>.outputs.command_output.

Closes #299

Capture and expose the output of Crowdin CLI commands when using
the `command` input, allowing users to access it in subsequent
workflow steps via `steps.<id>.outputs.command_output`.

Closes #299
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to capture and expose the output of arbitrary Crowdin CLI commands, making it accessible in subsequent workflow steps through the command_output output variable.

Changes:

  • Added command_output as a new action output that captures CLI command results
  • Implemented output capture using command substitution and multiline heredoc syntax in the entrypoint script
  • Updated documentation with usage examples and output description

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
entrypoint.sh Initializes command_output output variable and captures Crowdin CLI command output using command substitution and heredoc for multiline handling
action.yml Declares the new command_output output with description
README.md Documents the new output and provides usage examples for accessing command output in subsequent steps

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add output for arbitrary crowdin CLI commands

2 participants