Replies: 3 comments
-
+1 for this feature! GitHub Actions can be used for a lot of things, from ensuring that codebase standards are applied to doing a chain of automated work. One usage of GitHub Actions is to automate experimentations using GitHub Actions. I have set up a full example of how to do Continuous Experimentation using GitHub Actions. It would be useful to have One more feature request: PLEASE HAVE THE ABILITY TO RUN JOBS LOCALLY FOR TESTING!!!!!! :( |
Beta Was this translation helpful? Give feedback.
-
I just discovered that capturing output cross-platform (matrix) tests can be a pain as "tee" exists on Linux but not on Windows for instance. There are two options IMHO:
Note: output(s) because of stdout and stderr. |
Beta Was this translation helpful? Give feedback.
-
While workarounds exist for the Built-in support for capturing every step's output would solve this. Has Workaround
...
steps:
- run: conda install ...
steps:
- run: conda install ... | tee conda.txt
- run: cat conda.txt No Workaround
...
steps:
- uses: cycjimmy/semantic-release-action@v4
id: release
- name: "Process release stdout"
...?
|
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
Getting the output of a certain step is a common task in GitHub Actions, yet very tedious.
Please refer to: https://stackoverflow.com/questions/59191913/how-do-i-get-the-output-of-a-specific-step-in-github-actions
One idea is "echoing" the commdn to GITHUB_OUTPUT, which makes the step to succeed even if the actual command failed as it's masked by the echo command.
There are workarounds for this, but they make the step way more complex than it should be.
Someone even went through the trouble of creating a custom action as a replacement to the run command: https://github.com/mathiasvr/command-output
People have asked for this feature before (actions/runner#919) but they were shutdown without even a proper discussion.
One guy mentioned about the runner's memory, but that's a non-issue, we can simply make this feature optional, it could look like this:
...and make these things optional and false by default. This example looks silly, but we could use the stdout/stderr/exitcode to add a comment to a pull request, or send a notification on Slack/Discord.
This feature would not necessarily create a memory problem as people are already doing this by appending stuff to GITHUB_OUTPUT, it's just inconvenient because the
echo
command hides the command exit code and make the step succeed.Beta Was this translation helpful? Give feedback.
All reactions