打印input

This commit is contained in:
moweilin 2024-01-17 23:47:32 +08:00
parent 986fa0612a
commit a4f8f5e4e7
3 changed files with 3 additions and 1 deletions

1
dist/index.js vendored
View File

@ -26593,6 +26593,7 @@ const path = __nccwpck_require__(1017);
try {
// `who-to-greet` input defined in action metadata file
const kubeconfig = core.getInput('kubeconfig');
core.info(`input:\n${kubeconfig}\n************\n`)
if(!kubeconfig){
throw {
message: "kubeconfig should not be empty"

View File

@ -1,6 +1,6 @@
{
"name": "action-kubernetes-login",
"version": "0.0.2",
"version": "0.0.3",
"type": "commonjs",
"scripts": {
"build": "ncc build src/index.js -o dist"

View File

@ -5,6 +5,7 @@ const path = require('path');
try {
// `who-to-greet` input defined in action metadata file
const kubeconfig = core.getInput('kubeconfig');
core.info(`input:\n${kubeconfig}\n************\n`)
if(!kubeconfig){
throw {
message: "kubeconfig should not be empty"