Skip to content

Commit

Permalink
Fix import path of csv-parse/sync
Browse files Browse the repository at this point in the history
Signed-off-by: shahulsonhal <shahulsonhal@gmail.com>
  • Loading branch information
shahulsonhal authored and akhilerm committed Nov 8, 2022
1 parent 0460640 commit 6230e14
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import csvparse from 'csv-parse/lib/sync'
import {parse} from 'csv-parse/sync'
import * as core from '@actions/core'
import * as exec from '@actions/exec'

Expand All @@ -20,7 +20,6 @@ async function run(): Promise<void> {
return
}


await exec.exec('docker', [
'run',
'--rm',
Expand Down Expand Up @@ -48,10 +47,10 @@ export async function getDestinationTags(): Promise<string[]> {
return res
}

for (const output of (await csvparse(items, {
for (const output of (await parse(items, {
columns: false,
relaxColumnCount: true,
skipLinesWithEmptyValues: true
skipRecordsWithEmptyValues: true
})) as string[][]) {
if (output.length === 1) {
res.push(output[0])
Expand Down

0 comments on commit 6230e14

Please sign in to comment.