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> |
||
|---|---|---|
| .. | ||
| testdata | ||
| action.go | ||
| github_context.go | ||
| github_context_test.go | ||
| job_context.go | ||
| planner.go | ||
| planner_test.go | ||
| step_result.go | ||
| workflow.go | ||
| workflow_test.go | ||