fix: missing defaults in nodejs pre (#1349)

* Update action.go

* add Test

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
ChristopherHX
2022-09-26 08:08:08 +02:00
committed by GitHub
parent d137ec8285
commit 6037182487
3 changed files with 26 additions and 0 deletions

View File

@@ -481,6 +481,8 @@ func runPreStep(step actionStep) common.Executor {
switch action.Runs.Using {
case model.ActionRunsUsingNode12, model.ActionRunsUsingNode16:
// defaults in pre steps were missing, however provided inputs are available
populateEnvsFromInput(ctx, step.getEnv(), action, rc)
// todo: refactor into step
var actionDir string
var actionPath string