mirror of
https://github.com/valitydev/repo-file-sync-action.git
synced 2024-11-06 09:55:21 +00:00
🩹 Set yaml parser to throw error on duplicate key
This commit is contained in:
parent
1a716e9a7f
commit
78414681db
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -30284,7 +30284,7 @@ const parseFiles = (files) => {
|
||||
const parseConfig = async () => {
|
||||
const fileContent = await fs.promises.readFile(context.CONFIG_PATH)
|
||||
|
||||
const configObject = yaml.load(fileContent.toString(), { json: true })
|
||||
const configObject = yaml.load(fileContent.toString())
|
||||
|
||||
const result = {}
|
||||
|
||||
|
@ -124,7 +124,7 @@ const parseFiles = (files) => {
|
||||
const parseConfig = async () => {
|
||||
const fileContent = await fs.promises.readFile(context.CONFIG_PATH)
|
||||
|
||||
const configObject = yaml.load(fileContent.toString(), { json: true })
|
||||
const configObject = yaml.load(fileContent.toString())
|
||||
|
||||
const result = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user