mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-09-16 17:56:56 +00:00
Fix csv-parse implementation since major update
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
2a96a96c9c
commit
b7ad32e4f5
4 changed files with 20 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
import csvparse from 'csv-parse/lib/sync';
|
||||
import {parse} from 'csv-parse/sync';
|
||||
import * as core from '@actions/core';
|
||||
|
||||
export enum Type {
|
||||
|
@ -86,9 +86,9 @@ export function Transform(inputs: string[]): Tag[] {
|
|||
}
|
||||
|
||||
export function Parse(s: string): Tag {
|
||||
const fields = csvparse(s, {
|
||||
const fields = parse(s, {
|
||||
relaxColumnCount: true,
|
||||
skipLinesWithEmptyValues: true
|
||||
skipEmptyLines: true
|
||||
})[0];
|
||||
|
||||
const tag = new Tag();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue