打印input
This commit is contained in:
parent
986fa0612a
commit
a4f8f5e4e7
|
|
@ -26593,6 +26593,7 @@ const path = __nccwpck_require__(1017);
|
||||||
try {
|
try {
|
||||||
// `who-to-greet` input defined in action metadata file
|
// `who-to-greet` input defined in action metadata file
|
||||||
const kubeconfig = core.getInput('kubeconfig');
|
const kubeconfig = core.getInput('kubeconfig');
|
||||||
|
core.info(`input:\n${kubeconfig}\n************\n`)
|
||||||
if(!kubeconfig){
|
if(!kubeconfig){
|
||||||
throw {
|
throw {
|
||||||
message: "kubeconfig should not be empty"
|
message: "kubeconfig should not be empty"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "action-kubernetes-login",
|
"name": "action-kubernetes-login",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ncc build src/index.js -o dist"
|
"build": "ncc build src/index.js -o dist"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ const path = require('path');
|
||||||
try {
|
try {
|
||||||
// `who-to-greet` input defined in action metadata file
|
// `who-to-greet` input defined in action metadata file
|
||||||
const kubeconfig = core.getInput('kubeconfig');
|
const kubeconfig = core.getInput('kubeconfig');
|
||||||
|
core.info(`input:\n${kubeconfig}\n************\n`)
|
||||||
if(!kubeconfig){
|
if(!kubeconfig){
|
||||||
throw {
|
throw {
|
||||||
message: "kubeconfig should not be empty"
|
message: "kubeconfig should not be empty"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue