the action is being inadvertently executed when imported by src/run.test.ts since src/run.ts calls the run async function at the end.
to fix this I've moved the run function definition into a new file: src/action.ts and moved the corresponding test to src/action.test.ts, leaving only the call to execute the action in src/run.ts since this is the entry point for the action from GitHub's side.
the action is being inadvertently executed when imported by
src/run.test.ts
sincesrc/run.ts
calls therun
async function at the end.to fix this I've moved the
run
function definition into a new file:src/action.ts
and moved the corresponding test tosrc/action.test.ts
, leaving only the call to execute the action insrc/run.ts
since this is the entry point for the action from GitHub's side.this should unblock the following release: https://github.com/Azure/k8s-set-context/actions/runs/4018476655/jobs/6904143151#step:3:82
68