chore: create ci release (efb34d6cb2)
This commit is contained in:
11
src/teardown.ts
Normal file
11
src/teardown.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { rm } from 'node:fs/promises'
|
||||
|
||||
import { debug, getState } from '@actions/core'
|
||||
|
||||
export async function teardown() {
|
||||
debug('Running kubectl-action teardown()')
|
||||
console.log('Removing kubeconfig')
|
||||
|
||||
const configPath = getState('kubeconfig-path')
|
||||
await rm(configPath, { recursive: true, force: true })
|
||||
}
|
||||
Reference in New Issue
Block a user