Updating actions core package

This commit is contained in:
Shivam Gupta
2020-10-22 12:51:02 +05:30
parent 481aa69a3c
commit e5a2133107
19 changed files with 324 additions and 107 deletions

View File

@@ -1,5 +1,4 @@
import * as core from '@actions/core';
import { issueCommand } from '@actions/core/lib/command';
import * as path from 'path';
import * as fs from 'fs';
import * as io from '@actions/io';
@@ -120,7 +119,7 @@ async function run() {
core.debug(`Writing kubeconfig contents to ${kubeconfigPath}`);
fs.writeFileSync(kubeconfigPath, kubeconfig);
fs.chmodSync(kubeconfigPath, '600');
issueCommand('set-env', { name: 'KUBECONFIG' }, kubeconfigPath);
core.exportVariable('KUBECONFIG', kubeconfigPath);
console.log('KUBECONFIG environment variable is set');
await setContext(kubeconfigPath);
} catch (ex) {