mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-26 22:26:08 +08:00
bake: check for empty source
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
2d105f7337
commit
2d1ce9a223
@ -38,7 +38,10 @@ export class Bake {
|
||||
let remoteDef;
|
||||
const files: Array<string> = [];
|
||||
if (sources) {
|
||||
for (const source of sources) {
|
||||
for (const source of sources.map(v => v.trim())) {
|
||||
if (source.length == 0) {
|
||||
continue;
|
||||
}
|
||||
if (!Util.isValidRef(source)) {
|
||||
files.push(source);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user