mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-12 01:15:09 +08:00
Removing whitespace from manifests
This commit is contained in:
parent
8d257fed50
commit
625898f6eb
@ -61,6 +61,12 @@ export async function run() {
|
|||||||
let action = core.getInput('action');
|
let action = core.getInput('action');
|
||||||
let manifests = manifestsInput.split(/[\n,]+/);
|
let manifests = manifestsInput.split(/[\n,]+/);
|
||||||
|
|
||||||
|
if (manifests.length > 0) {
|
||||||
|
manifests = manifests.map(manifest => {
|
||||||
|
return manifest.trim();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (action === 'deploy') {
|
if (action === 'deploy') {
|
||||||
let strategy = core.getInput('strategy');
|
let strategy = core.getInput('strategy');
|
||||||
console.log("strategy: ", strategy)
|
console.log("strategy: ", strategy)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user