fix: run all actions
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable unicorn/prefer-top-level-await */
|
||||
import { debug, getState, setFailed } from '@actions/core'
|
||||
import { setupKubeconfig } from 'login'
|
||||
import { installKubectl } from 'setup'
|
||||
@@ -7,6 +6,7 @@ const post = Boolean(getState('isPost'))
|
||||
|
||||
if (!post) {
|
||||
debug('Running kubectl-action setup')
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
new Promise(async () => {
|
||||
await installKubectl()
|
||||
debug('kubectl-action setup complete')
|
||||
@@ -14,6 +14,7 @@ if (!post) {
|
||||
await setupKubeconfig()
|
||||
debug('kubectl-action kubeconfig setup complete')
|
||||
})
|
||||
// eslint-disable-next-line unicorn/prefer-top-level-await
|
||||
.catch(error => {
|
||||
setFailed('Failed to install kubectl (this is a bug in kubectl-action): ')
|
||||
debug(JSON.stringify(error))
|
||||
|
||||
Reference in New Issue
Block a user