mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
Feature: Added an action type for the action.yaml that uses sh (#141)
Currently the only way to get pre and post actions is to go through the nodejs mechanism, which is quite wasteful when all one wants to do is run a couple of shell commands, I'm trying to get around this with this patch. It works similar to the node* actions in that it supports `pre`, `main` and `post`. It is different in that these strings are passed to the system shell using `sh -c` and execute similar to the composite run action with the shell set to `sh`. Example action to make use of this patch: https://codeberg.org/slatian/test-action/src/branch/main/action.yaml Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/141 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: Slatian <baschdel@disroot.org> Co-committed-by: Slatian <baschdel@disroot.org>
This commit is contained in:
parent
ab012fec87
commit
5cf8d53087
7 changed files with 87 additions and 8 deletions
|
@ -382,6 +382,8 @@ func TestRunEventHostEnvironment(t *testing.T) {
|
|||
{workdir, "uses-composite-with-error", "push", "Job 'failing-composite-action' failed", platforms, secrets},
|
||||
{workdir, "uses-nested-composite", "push", "", platforms, secrets},
|
||||
{workdir, "act-composite-env-test", "push", "", platforms, secrets},
|
||||
{workdir, "uses-sh", "push", "", platforms, secrets},
|
||||
{workdir, "uses-sh-test-action-path", "push", "", platforms, secrets},
|
||||
|
||||
// Eval
|
||||
{workdir, "evalmatrix", "push", "", platforms, secrets},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue