mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-03-28 10:02:17 +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 manifests = manifestsInput.split(/[\n,]+/);
|
||||
|
||||
if (manifests.length > 0) {
|
||||
manifests = manifests.map(manifest => {
|
||||
return manifest.trim();
|
||||
});
|
||||
}
|
||||
|
||||
if (action === 'deploy') {
|
||||
let strategy = core.getInput('strategy');
|
||||
console.log("strategy: ", strategy)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user