-
Hi, I am wondering if there is already a way to run a test suite inside a workflow without pushing a commit. Here is what I got so far… is all open source https://github.com/chevah/brink/pull/120 , but is based on the legacy buildbot code designed to run on AIX 5.3, HPUX and Solaris 10 on Sparc. I am using buildbot try (https://docs.buildbot.net/current/manual/cmdline.html#try) command to help with TDD for multi-OS code. Most of the time my usage is as follows. I did a proof of concept tool for GitHub actions using the workflow_dispatch event which has a Then the workflow has the required rules for decoding and applying the diff. For now is a big hack, as it looks like the current API is not designed for such an usage. What do you think? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Yeah, currently the “Create a workflow dispatch event” API only returns a status code (e.g. 204 No Content) in the Response. Just like the “Create a repository dispatch event” API (for If you want to view the detailed information of the triggered workflow run, you can output the github context in the workflow run.
Of course, if your projects really need the feature that the “Create a workflow dispatch event” API can return the id of the triggered workflow run in the Response, I recommend that you can directly report a feature request here. That will allow you to directly interact with the appropriate engineering team, and make it more convenient for the engineering team to collect and categorize your suggestions. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response. I prefer this way of dumping the context, as I get a nicely formatted json.
Do you know why using following conditions doesn’t work
But if I use something like this works?
I have checked the Github context value, and github.event.inputs.job and github.job are set to the same value. Thanks |
Beta Was this translation helpful? Give feedback.
-
There are few points you may need to understand:
To make sure the job ‘linux_unicode_path’ in your workflow only run when the current workflow run is triggered on the ‘workflow_dispatch’ event, and can meet the conditional (github.event.inputs.job == ‘’) or (github.event.inputs.job == linux_unicode_path), you can change the job level if conditional to like below:
|
Beta Was this translation helpful? Give feedback.
@adiroiban,
There are few points you may need to understand:
The id of current job won’t be assigned to the property ‘github.job’ until the job starts up.
When you use the expression ‘github.job’ on the job level if conditional, it will always return ‘null’ since the current job has not started up.
So, you can only use the expression ‘github.job’ in the steps (include the step level if conditional) after the current job starts up.
For the expression ‘github.event.inputs.job’, if the current workflow run is not tr…