feat: use github actions env for windows check for extra resiliency

This commit is contained in:
Aarnav Tale
2023-06-28 22:15:24 -04:00
parent e49d06518c
commit 93d421ead9

View File

@@ -1,11 +1,11 @@
import { platform } from 'node:process'
import { env, platform } from 'node:process'
import { debug, getState, setFailed } from '@actions/core'
import { setupKubeconfig } from 'login'
import { installKubectl } from 'setup'
import { teardown } from 'teardown'
if (platform === 'win32') {
if (env.RUNNER_OS === 'Windows' || platform === 'win32') {
setFailed('kubectl-action does not support Windows')
}