export async function run()

in src/action.ts [10:33]


export async function run() {
   // get inputs
   const clusterType: Cluster | undefined = parseCluster(
      core.getInput('cluster-type', {
         required: true
      })
   )
   const runnerTempDirectory: string = process.env['RUNNER_TEMP']
   const kubeconfigPath: string = path.join(
      runnerTempDirectory,
      `kubeconfig_${Date.now()}`
   )

   // get kubeconfig and update context
   const kubeconfig: string = await getKubeconfig(clusterType)
   const kubeconfigWithContext: string = setContext(kubeconfig)

   // output kubeconfig
   core.debug(`Writing kubeconfig contents to ${kubeconfigPath}`)
   fs.writeFileSync(kubeconfigPath, kubeconfigWithContext)
   fs.chmodSync(kubeconfigPath, '600')
   core.debug('Setting KUBECONFIG environment variable')
   core.exportVariable('KUBECONFIG', kubeconfigPath)
}