Azure / k8s-set-context

GitHub Action for setting context and retrieving Kubeconfig before deploying to Kubernetes clusters
MIT License
85 stars 34 forks source link

separate action and execution by creating action.ts #77

Closed davidgamero closed 1 year ago

davidgamero commented 1 year ago

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.

this should unblock the following release: https://github.com/Azure/k8s-set-context/actions/runs/4018476655/jobs/6904143151#step:3:82

68